Difference between revisions of "Script Function: Deactivate"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> deactivate(<span style="color:#0000FF">obj</span> this) { <span style="color:#0000F...")
(No difference)

Revision as of 03:03, 12 October 2018

 function void deactivate(obj this)
 {
   if (hasObjVar(this, "_objectId") && hasObjVar(this, "_objectType"))
   {
     obj objectId = getobjvar_obj(this, "_objectId");
     int objectType = getobjvar_int(this, "_objectType");
     deleteIfValid(objectId, objectType);
     removeObjVar(this, "_objectId");
     processTriggerCmds(this, "d");
   }
   return;
 }