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