- Joined
- Nov 19, 2010
- Messages
- 54
Hello,
I am looking for a way to make a "Tower Swap" ability for my Tower Defense game. Just swapping / changing the location with the currently selected unit/tower with a unit/tower that is being clicked on and swap / change their positions with 1/2 time usage.
I created a unit named "swap tower" and i am trying to create a trigger for it that when used, the positions change with each other but i am unable to find anything for that in actions.
I haven't edited trigger in a while and i tried searching in the action triggers and also on the forum here but i couldn't find a topic that seems what i am looking for.
I also think i need to swap the "unit" with a "ability" to use for my towers.
I don't know if someone can put me in the right direction with this?
I am looking for a way to make a "Tower Swap" ability for my Tower Defense game. Just swapping / changing the location with the currently selected unit/tower with a unit/tower that is being clicked on and swap / change their positions with 1/2 time usage.
I created a unit named "swap tower" and i am trying to create a trigger for it that when used, the positions change with each other but i am unable to find anything for that in actions.
I haven't edited trigger in a while and i tried searching in the action triggers and also on the forum here but i couldn't find a topic that seems what i am looking for.
I also think i need to swap the "unit" with a "ability" to use for my towers.
-
Tower Swap Ability
- Events
-
Conditions
- (Unit-type of (Sold unit)) Equal to Swap Tower
-
Actions
- Unit - Move (Triggering unit) instantly to (Mouse Position for Triggered Mouse Event)
- Selection - Select (Triggering unit) for (Owner of (Triggering unit))
I don't know if someone can put me in the right direction with this?
Last edited: