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:46 -08:00
parent 7fb75f6371
commit e0833b29dd
@@ -13,6 +13,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" );
@@ -48,4 +58,4 @@ messageHandler checkForScripts()
detachScript (self, "theme_park.poi.launch");
}
return SCRIPT_CONTINUE;
}
}