Files
dsrc/sku.0/sys.server/compiled/game/script/e3demo/e3_stormtrooper.script
T
2013-09-10 23:17:15 -07:00

33 lines
598 B
Plaintext

include library.anims;
include library.factions;
trigger OnAttach()
{
messageTo(self, "doFaceTo", null, 5, false);
setAnimationMood(self, "npc_imperial");
factions.setFaction( self, "Imperial");
return SCRIPT_CONTINUE;
}
messageHandler doFaceTo()
{
// faceto somewhere.
obj_id[] objTestObjects = getAllObjectsWithObjVar(getLocation(self), 2000, "stormtrooperFace");
faceTo(self, getLocation(objTestObjects[0]));
return SCRIPT_CONTINUE;
}
messageHandler doEmote()
{
string strEmote = params.getString("strEmote");
doAnimationAction( self, strEmote);
return SCRIPT_CONTINUE;
}