From 877a8eaec6854b873ffadc5694be83fcfcc6b45f Mon Sep 17 00:00:00 2001 From: Redacted by Stellabellum INC Date: Thu, 18 Dec 2014 23:44:54 -0800 Subject: [PATCH] Added OnAttach trigger in order to allow for script to function in other spawning methods. --- .../game/script/city/interior_3_convo.script | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/city/interior_3_convo.script b/sku.0/sys.server/compiled/game/script/city/interior_3_convo.script index 04bf53189..d46f60963 100644 --- a/sku.0/sys.server/compiled/game/script/city/interior_3_convo.script +++ b/sku.0/sys.server/compiled/game/script/city/interior_3_convo.script @@ -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; -} \ No newline at end of file +}