I know how to get units to climb a cliff using invisible platform, but I have a small problem doing so with siege towers.
What I am trying to do is:
1. Spawn an invisible platform when a Siege tower enters a zone
2. Remove the platform when the Siege tower dies
Problem is that I have problem finding the right place to spawn the invisible platform.
Just out of curiosity, is it possible to make it so that towers can just stop at any section of the wall and spawn the invisible platform, then remove the platform when they die? I know how to get them to spawn, just that I have no idea how to pick and remove them once the tower dies. Of course the once the tower spawn the platform, they will become immobile.
Any help/advice/idea is appreciated.
What I am trying to do is:
1. Spawn an invisible platform when a Siege tower enters a zone
2. Remove the platform when the Siege tower dies
Problem is that I have problem finding the right place to spawn the invisible platform.
-
Tower Approaching
-
Events
- Unit - A unit enters SiegeTowerZone <gen>
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Siege Tower
-
Actions
- Set towerLocation = ((Position of (Triggering unit)) offset by (0.00, 100.00))
- Unit - Replace (Triggering unit) with a Siege Tower (Immobile version) using The old unit's relative life and mana
- Destructible - Create a Invisible Platform at towerLocation facing 90.00 with scale 1.00 and variation 0
- Custom script: call RemoveLocation(udg_towerLocation)
-
Events
-
Tower Dies
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Siege Tower (Immobile version)
-
Actions
-
Destructible - Pick every destructible in SiegeTowerZone <gen> and do (Actions)
-
Loop - Actions
- Destructible - Remove (Picked destructible)
-
Loop - Actions
-
Destructible - Pick every destructible in SiegeTowerZone <gen> and do (Actions)
-
Events
Just out of curiosity, is it possible to make it so that towers can just stop at any section of the wall and spawn the invisible platform, then remove the platform when they die? I know how to get them to spawn, just that I have no idea how to pick and remove them once the tower dies. Of course the once the tower spawn the platform, they will become immobile.
Any help/advice/idea is appreciated.