Move ai attach to right entity

This commit is contained in:
austin 2021-11-16 00:18:33 -05:00
parent cda719c9a2
commit c23cb9870b

View File

@ -620,6 +620,8 @@ public class LoadingThread extends Thread {
//give evil goblin sword
Entity goblinSword = ItemUtils.spawnBasicItem("Katana");
AttachUtils.attachEntityToEntityAtBone(goblin, goblinSword, "Bone.031");
//attach ai to evil goblin
MindlessAttacker.attachToCreature(goblin);
// goblin = CreatureUtils.spawnBasicCreature("Goblin");
// CollisionObjUtils.positionCharacter(goblin, new Vector3f(3, 0, 4));
@ -632,8 +634,6 @@ public class LoadingThread extends Thread {
// goblin = CreatureUtils.spawnBasicCreature("Goblin");
// CollisionObjUtils.positionCharacter(goblin, new Vector3f(3, 0, 3));
// EntityUtils.getScale(goblin).set(0.005f);
// //attach ai to evil goblin
// MindlessAttacker.attachToCreature(goblin);
// UnitUtils.spawnTextGoblin(10, 0, 10);