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:39 -08:00
parent 7f4f9760af
commit 7fb75f6371
@@ -11,6 +11,14 @@ trigger OnInitialize ()
return SCRIPT_CONTINUE;
}
trigger OnAttach ()
{
beginSpawning( self );
messageTo( self, "handleChatting", null, 10, false );
messageTo( self, "checkForScripts", null, 10, false );
return SCRIPT_CONTINUE;
}
messageHandler handleChatting()
{
obj_id guy1 = getObjIdObjVar( self, "guy1" );
@@ -129,4 +137,4 @@ messageHandler checkForScripts()
detachScript (self, "theme_park.poi.launch");
}
return SCRIPT_CONTINUE;
}
}