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