mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
package script.e3demo;
|
|
|
|
import script.*;
|
|
import script.base_class.*;
|
|
import script.combat_engine.*;
|
|
import java.util.Arrays;
|
|
import java.util.Hashtable;
|
|
import java.util.Vector;
|
|
import script.base_script;
|
|
|
|
import script.library.anims;
|
|
import script.library.factions;
|
|
|
|
public class e3_stormtrooper extends script.base_script
|
|
{
|
|
public e3_stormtrooper()
|
|
{
|
|
}
|
|
public int OnAttach(obj_id self) throws InterruptedException
|
|
{
|
|
messageTo(self, "doFaceTo", null, 5, false);
|
|
setAnimationMood(self, "npc_imperial");
|
|
factions.setFaction(self, "Imperial");
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int doFaceTo(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
obj_id[] objTestObjects = getAllObjectsWithObjVar(getLocation(self), 2000, "stormtrooperFace");
|
|
faceTo(self, getLocation(objTestObjects[0]));
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int doEmote(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
String strEmote = params.getString("strEmote");
|
|
doAnimationAction(self, strEmote);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|