mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-11 22:45:06 -04:00
Added OnAttach trigger in order to allow for script to function in other spawning methods.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user