• 🏆 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!

Loops in Actor Events?

Status
Not open for further replies.
Level 9
Joined
Nov 4, 2007
Messages
931
Is there a way to create loops in Actor events without needing a periodic behavior to be checked by an event, but only usiing Event Timers? The reason I ask is because I am trying to make an attachment to a model grow and shrink constantly, but I can't seem to figure out how to make this action repeat using Actor Events only. Does anyone have an idea of how to do this specifically using Actors and Actor Events?
 
Level 9
Joined
Nov 4, 2007
Messages
931
Tried the timer events, and used a method that should have had them going in a loop:
Actor Creation
Timer Set [1.500 Seconds, TimerScale1]
Actor Creation
Set Scale [1.25, 1.25, 1.25, Blend 1.5000 Seconds]
Timer Expired
Timer Name[TimerScale1]
Timer Set [1.500 Seconds, TimerScale2]
Timer Expired
Timer Name[TimerScale1]
Set Scale [0.8, 0.8, 0.8, Blend 1.500 Seconds]
Timer Expired
Timer Name[TimerScale2]
Timer Set [1.500 Seconds, TimerScale1]
Timer Expired
Timer Name[TimerScale2]
Set Scale [1.25, 1.25, 1.25, Blend 1.500 Seconds]
But dcoes not work, it simply ends at the final event and action in the list.
Edit: Sorry but Hive's auto-corrections won't allow me to put a space before the Actions, so it may be a little difficult to sort it out.
 
Level 9
Joined
Nov 4, 2007
Messages
931
Took your suggestion and applied it:
Actor Creation
|Timer Set [1.500 Seconds, TimerScale1]
Actor Creation
|Set Scale [1.25, 1.25, 1.25, Blend 1.5000 Seconds]
Timer Expired
|Timer Name[TimerScale1]
|Timer Set [1.500 Seconds, TimerScale2]
Timer Expired
|Timer Name[TimerScale1]
|Set Scale [0.8, 0.8, 0.8, Blend 1.500 Seconds]
Timer Expired
|Timer Name[TimerScale1]
|Timer Kill [TimerScale1]
Timer Expired
|Timer Name[TimerScale2]
|Timer Set [1.500 Seconds, TimerScale1]
Timer Expired
|Timer Name[TimerScale2]
|Set Scale [1.25, 1.25, 1.25, Blend 1.500 Seconds]
Timer Expired
|Timer Name[TimerScale2]
|Timer Kill [TimerScale2]
Unfortunately it still does not appear to work and ends at the same place as before. The only method I found for fixing this is through using behaviors with periodic effects that can be detected by actors, though I was hoping to create loops without requiring such a thing.
 
Status
Not open for further replies.
Top