mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
28 lines
1001 B
Java
Executable File
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;
|
|
}
|
|
}
|