Your not being too specific so dont exactly know what you mean. But yes you could do such a thing, create a repeating timer that expires every x seconds, x being a real variable type. Make x global if the timer duration is being changed by something in another trigger. If you cant change a timers repeating duration after its been created you could create a new timer with x for repeating time whenever you changed the repeating time value and destroy the old timer. If you had a timer variable you could set the new timer to this variable after destroying the old one, if you needed to.
Yes this is possible and in general a periodic trigger should never be used (usually a action or function defintion); what your looking for is typically done by using a loop with a wait action. You can set this wait action to use a global/local variable, or parameter to set the time of the loop.
Rollback Post to RevisionRollBack
When I want your opinion...I'll give it to you!
To post a comment, please login or register a new account.
Is there anyway to do a periodic event trigger using a time variable that changes throughout the game? Or some way that gives the same effect.
@penguinwars: Go
Your not being too specific so dont exactly know what you mean. But yes you could do such a thing, create a repeating timer that expires every x seconds, x being a real variable type. Make x global if the timer duration is being changed by something in another trigger. If you cant change a timers repeating duration after its been created you could create a new timer with x for repeating time whenever you changed the repeating time value and destroy the old timer. If you had a timer variable you could set the new timer to this variable after destroying the old one, if you needed to.
Yes this is possible and in general a periodic trigger should never be used (usually a action or function defintion); what your looking for is typically done by using a loop with a wait action. You can set this wait action to use a global/local variable, or parameter to set the time of the loop.