I'm using the actor event Timer Expires, to destroy an actor, when a timer I set on creation, expires. This works fine, but I'm not able to specify any timer with the event, only set it to any, which in this case works, as there is only 1 timer in the actor events.
But how can I, for instance have 2 timers in an actor, with 2 different durations, causing different effects when expiring.
Bottom line, how do I specify which timer I want to reach on, with the Timer Expires event?
I'm using the actor event Timer Expires, to destroy an actor, when a timer I set on creation, expires. This works fine, but I'm not able to specify any timer with the event, only set it to any, which in this case works, as there is only 1 timer in the actor events.
But how can I, for instance have 2 timers in an actor, with 2 different durations, causing different effects when expiring.
Bottom line, how do I specify which timer I want to reach on, with the Timer Expires event?
Use the term "TimerName". For example;
<On Terms="ActorCreation" Send="TimerSet 2.500000 Die"/>
<On Terms="TimerExpired; TimerName Die" Send="Destroy"/>
This would destroy the actor after a 2.5 second delay.
Ah, yes ofc.. thanks :)