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

26 lines
732 B
Plaintext

include library.utils;
include library.ship_ai;
include library.space_utils;
include library.space_combat;
include library.space_create;
trigger OnDestroy()
{
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;
}