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

28 lines
1001 B
Java
Executable File

package script.e3demo;
import script.dictionary;
import script.library.space_utils;
import script.obj_id;
public class nebulon_child_object extends script.base_script
{
public nebulon_child_object()
{
}
public int OnDestroy(obj_id self) throws InterruptedException
{
if (!hasObjVar(self, "intReset"))
{
obj_id objNebulon = getObjIdObjVar(self, "objNebulon");
dictionary dctParams = new dictionary();
dctParams.put("strType", getStringObjVar(self, "strType"));
LOG("space", "Destroying " + getStringObjVar(self, "strType") + "and notifying " + objNebulon);
dctParams.put("intAttacker", getIntObjVar(self, "intAttacker"));
dctParams.put("trSpawnLocation", getTransformObjVar(self, "trSpawnLocation"));
space_utils.notifyObject(objNebulon, "shipDestroyed", dctParams);
return SCRIPT_CONTINUE;
}
return SCRIPT_CONTINUE;
}
}