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

23 lines
573 B
Plaintext

include library.structure;
trigger OnAttach()
{
messageTo(self, "handleInitializeCloningTube", null, 3.0f, false);
return SCRIPT_CONTINUE;
}
messageHandler handleInitializeCloningTube()
{
attachScript(self, "structure.municipal.cloning_facility");
string myTemplate = getTemplateName(self);
dictionary facilityData = dataTableGetRow(structure.DATATABLE_CLONING_FACILITY_RESPAWN, myTemplate);
dictionary dict = new dictionary();
dict.put("facilityData", facilityData);
messageTo(self, "registerCloningFacility", dict, 10.0f, false);
return SCRIPT_CONTINUE;
}