• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] Every x Seconds of Game Time in JASS

Status
Not open for further replies.
Level 4
Joined
Jan 14, 2017
Messages
75
I am familiar with the "Every x Seconds of Game Time" in GUI, but not Jass. How would I replicate this system into my Jass Spell?
Note: for my spell, I'm making it so every 1 second of game time, a unit gets healed (until the timer runs out)
 

Jampion

Code Reviewer
Level 15
Joined
Mar 25, 2016
Messages
1,327
JASS:
call TriggerRegisterTimerEvent( trg, x ,true)
trg is the trigger you want to add the event to
x is the time in seconds

You can always create the trigger in GUI and convert it to JASS to see how you do it in JASS.
 
Status
Not open for further replies.
Top