- Joined
- May 1, 2008
- Messages
- 1,605
Moin moin and hello =)
As you can think of the title, I want create from now on my own timer for my spells I create.
Up to now, I used the library "TimerUtils". With this (nice) extra library I could create a timer like this:
So now my question: What must I type, if I create an own timer for the spell/struct and how to use it in the create for create and in the loop for the loop?? Because "NewTimer,SetTimerData,GetTimerData,ReleaseTimer" was from TimerUtils (as far as I know)
Hope someone can help me with this and please you know my bad understanding of English, so no imba-owned-vjass-words here please =)
Greetings and Peace
Dr. Boom
As you can think of the title, I want create from now on my own timer for my spells I create.
Up to now, I used the library "TimerUtils". With this (nice) extra library I could create a timer like this:
JASS:
// in the create method:
local timer t = NewTimer()
//...
//...
call SetTimerData(t,this)
call TimerStart(t,0.04,true,function blabla)
// in the loop method at the beginning:
local timer t = GetExpiredTimer()
local thistype this = GetTimerData(t)
// After all actions and spell is done:
call ReleaseTimer(t)
So now my question: What must I type, if I create an own timer for the spell/struct and how to use it in the create for create and in the loop for the loop?? Because "NewTimer,SetTimerData,GetTimerData,ReleaseTimer" was from TimerUtils (as far as I know)
Hope someone can help me with this and please you know my bad understanding of English, so no imba-owned-vjass-words here please =)
Greetings and Peace
Dr. Boom