Spawn scripts
Posted: Tue Oct 31, 2017 6:57 pm
when you have a spawn scripy that does mulitple things, is there a way to make sure that functions dont run till the previous function is done
for example, the following is a list of things the npc does
of course the ***** lines are not in my code, just a note of what needs to happen
for example, the following is a list of things the npc does
of course the ***** lines are not in my code, just a note of what needs to happen
Code: Select all
PlayFlavor(NPC,"voiceover/english/captain_varlos/boat_06p_tutorial02_fvo_005.mp3","We are heading to the Island of Refuge.","",1602680439,2810422278,Spawn)
**** here need to wait till the above playfovor finishes
PerformCameraShake(Spawn,52429,15948)
***** wiat till above finishes
PerformCameraShake(Spawn,52429,15820)
***** add ingrid running to the captins location
PerformCameraShake(Spawn,52429,15820)
***** wait till ingrid starts running and to this one
PlayFlavor(NPC,"voiceover/english/captain_varlos/boat_06p_tutorial02_fvo_006.mp3","Ingrid! Quit gawking at the shorty and fix that yard-arm!","",2753489262,3183736171,Spawn)
***** ingrid runns up and talks need to wiat till this done beofre proceding
PlayFlavor(NPC,"voiceover/english/captain_varlos/boat_06p_tutorial02_fvo_007.mp3","Don't want the ship to come apart in these high winds, do ya'?!","",517097409,4194681002,Spawn)