Fixed issue where creature could not run to object because it wasn't a creature.

This commit is contained in:
Cekis
2018-03-23 16:00:47 -07:00
committed by CekisSWG
parent 7d1adf8260
commit 841f1eef96
@@ -88,8 +88,10 @@ public class sequencer extends script.base_script
}
public static void runToSequenceObject(obj_id objNPC, obj_id objSeq) throws InterruptedException
{
setMovementRun(objNPC);
pathTo(objNPC, getLocation(objSeq));
if(isNpcCreature(objNPC)) {
setMovementRun(objNPC);
pathTo(objNPC, getLocation(objSeq));
}
}
public static void runToSequenceObject(obj_id objNPC, String strObject) throws InterruptedException
{