Ok, so lets just say I have a Jass trigger in which I need to wait a specific amount of time before the actions may be executed.
To be more specific:
I have an ability which casts a projectile towards a target, however since the target is removed during the effect of the ability the projectile doesn't move towards the target.
This is why I need to wait a specified amount of time untill the target is being hit by the projectile before I remove it.
(Of course I'll calculate how long the projectile travels towards the target to get a accurate time to wait before removing the target)
Is it okay in this case to use TriggerSleepAction even though it is inaccurate?
Or should I use a timer?
If I do need a timer, how do I make the trigger stop executing actions untill the timer is expired?
To be more specific:
I have an ability which casts a projectile towards a target, however since the target is removed during the effect of the ability the projectile doesn't move towards the target.
This is why I need to wait a specified amount of time untill the target is being hit by the projectile before I remove it.
(Of course I'll calculate how long the projectile travels towards the target to get a accurate time to wait before removing the target)
Is it okay in this case to use TriggerSleepAction even though it is inaccurate?
Or should I use a timer?
If I do need a timer, how do I make the trigger stop executing actions untill the timer is expired?