mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-29 23:15:55 -04:00
48 lines
870 B
Plaintext
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;
|
|
}
|