• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Wait for functions and not triggers??

Status
Not open for further replies.
Level 4
Joined
May 6, 2006
Messages
79
how can you create a wait time inside a function so it doesn't affect the trigger which called the function??

for example

JASS:
function example takes nothing returns nothing

call MyFunction1()
call TriggerSleepAction (3.00)
call MyFunction2()

endfunction

and, in another trigger:

JASS:
function Trigger_Actions takes nothing returns nothing
integer A=0
loop
   exitwhen (A>=4)
   call example
   set A=A+1
endloop
endfunction

I want the trigger actions to call 4 MyFunction1, wait 3 seconds and call 4 Myfunction2. I could do it the simple way, but every function example contains a timer wich must be independantly activated.

Please if anyone knows a function that replaces the TriggerSleepAction and will only affect the function, let me know!

Thanks in advance[/code]
 
Status
Not open for further replies.
Top