- Joined
- Aug 23, 2008
- Messages
- 2,319
I've got 4 units in a turn-based battle. When it's the turn of a unit to perform an action, that unit it marked as the unit variable 'ActiveCharacter'.
Now when a unit attacks, I want the unit to:
-Move to the targeted unit
-Play 1 attack animation
-Move back to the region it came from (yes, it's a region)
-Turn around
I need to know how I can check from which region ActiveCharacter came. Checking the unit itself is going to be hard, since I need the same trigger for enemy units too, which are of random type, can contain double of the same unit-type, and are placed at any of the 4 enemy regions. So checking all that will be a LOT of work. That's why I'm looking for an easier and faster way to do this.
Now when a unit attacks, I want the unit to:
-Move to the targeted unit
-Play 1 attack animation
-Move back to the region it came from (yes, it's a region)
-Turn around
I need to know how I can check from which region ActiveCharacter came. Checking the unit itself is going to be hard, since I need the same trigger for enemy units too, which are of random type, can contain double of the same unit-type, and are placed at any of the 4 enemy regions. So checking all that will be a LOT of work. That's why I'm looking for an easier and faster way to do this.