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

48 lines
870 B
Plaintext

messageHandler startLandingSequence()
{
obj_id owner = params.getObjId("owner");
queueCommand(self, ##"prone", self, "", COMMAND_PRIORITY_FRONT);
setPosture(self, POSTURE_PRONE);
dictionary d = new dictionary();
d.put("owner", owner);
messageTo(self, "takeOff", d, 22.0f, false);
return SCRIPT_CONTINUE;
}
messageHandler takeOff()
{
obj_id owner = params.getObjId("owner");
location loc = getLocation(self);
dictionary d = new dictionary();
d.put("owner", owner);
messageTo(self, "startTakeOffSequence", d, 2.0f, false);
return SCRIPT_CONTINUE;
}
messageHandler startTakeOffSequence()
{
queueCommand(self, ##"stand", self, "", COMMAND_PRIORITY_FRONT);
setPosture(self, POSTURE_UPRIGHT);
messageTo(self, "cleanUp", null, 20.0f, false);
return SCRIPT_CONTINUE;
}
messageHandler cleanUp()
{
destroyObject(self);
return SCRIPT_CONTINUE;
}