Added OnAttach trigger in order to allow for script to function in other spawning methods.

This commit is contained in:
Redacted by Stellabellum INC
2014-12-18 23:44:54 -08:00
parent e0833b29dd
commit 877a8eaec6
@@ -14,6 +14,16 @@ trigger OnInitialize ()
return SCRIPT_CONTINUE;
}
trigger OnAttach()
{
spawnGuyOne( self );
spawnGuyTwo( self );
messageTo( self, "checkForScripts", null, 5, false );
messageTo( self, "handleChatting", null, 10, false );
return SCRIPT_CONTINUE;
}
messageHandler handleChatting()
{
obj_id guy1 = getObjIdObjVar( self, "guy1" );
@@ -58,4 +68,4 @@ messageHandler checkForScripts()
detachScript (self, "theme_park.poi.launch");
}
return SCRIPT_CONTINUE;
}
}