Files
dsrc/sku.0/sys.server/compiled/game/script/test/shuttle_test.java
T
2018-06-07 00:32:29 +01:00

44 lines
1.5 KiB
Java
Executable File

package script.test;
import script.dictionary;
import script.location;
import script.obj_id;
public class shuttle_test extends script.base_script
{
public shuttle_test()
{
}
public int startLandingSequence(obj_id self, dictionary params) throws InterruptedException
{
obj_id owner = params.getObjId("owner");
queueCommand(self, (-1114832209), 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;
}
public int takeOff(obj_id self, dictionary params) throws InterruptedException
{
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;
}
public int startTakeOffSequence(obj_id self, dictionary params) throws InterruptedException
{
queueCommand(self, (-1465754503), self, "", COMMAND_PRIORITY_FRONT);
setPosture(self, POSTURE_UPRIGHT);
messageTo(self, "cleanUp", null, 20.0f, false);
return SCRIPT_CONTINUE;
}
public int cleanUp(obj_id self, dictionary params) throws InterruptedException
{
destroyObject(self);
return SCRIPT_CONTINUE;
}
}