- Joined
- Mar 31, 2013
- Messages
- 56
Hi, I'm using a gate as a unit to control the open-close in the game.
I have made 2 units, "closed" and "opened" and both of them have the gate model and correct pathing maps.
I have a problem with the "opened" gate. yes, the animation. I have made a spell based on "Bear Form" and triggered it that whenever we cast the spell, the "Death Alternate" animation plays but i cannot control it, the animation runs until I use the spell again. I want it to open once! and here is the trigger:
EDIT: Actually it's not the trigger I'm looking for fixing, I'm trying to find a better way...
I have made 2 units, "closed" and "opened" and both of them have the gate model and correct pathing maps.
I have a problem with the "opened" gate. yes, the animation. I have made a spell based on "Bear Form" and triggered it that whenever we cast the spell, the "Death Alternate" animation plays but i cannot control it, the animation runs until I use the spell again. I want it to open once! and here is the trigger:
-
Gate Switch
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Gate Switch
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Gate (Closed)
-
Then - Actions
- Animation - Play (Triggering unit)'s death alternate animation
-
Else - Actions
- Animation - Play (Triggering unit)'s stand animation
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
EDIT: Actually it's not the trigger I'm looking for fixing, I'm trying to find a better way...