- Joined
- Dec 15, 2019
- Messages
- 11
So, I want to create an event which converts a unit to another when the player gives a smart order (right click) on a certain building, but I want this event to work only if the targeted building is owned by the player who owns the triggering unit and if the unit is near the targeted building.
So, when the player right clicks on a certain building with a certain unit, this unit moves to the building and changes to another unit when he has reached a certain area around this building. (and only if this building is in the same team as the unit)
For now I did this (Some of it is in french, sorry in advance)
Everything works as intended except for the "same-team" and "near the building" part.
I looked for an answer on internet for a day now and I found nothing
So, when the player right clicks on a certain building with a certain unit, this unit moves to the building and changes to another unit when he has reached a certain area around this building. (and only if this building is in the same team as the unit)
For now I did this (Some of it is in french, sorry in advance)

Everything works as intended except for the "same-team" and "near the building" part.
I looked for an answer on internet for a day now and I found nothing