- Joined
- May 9, 2009
- Messages
- 735
I want to make a trigger where siege engines (catapults, meat wagons etc.) change ownership depending on what units are around them.
Only neutral passive siege engines can change ownership and siege engines with no units around them at all (not counting other siege engines and buildings) turn neutral passive.
I can't find an event that would go about to accomplish this. The "a unit comes within range" event is useless and when it is added from another trigger it becomes impossible to alter conditions as they would be targeting either 'the last created unit' or whatever value of a variable that inevitably will have to changed with each siege engine on the field.
Is there are trigger I could make using "periodic event" event and some condition to achieve my goals?
Only neutral passive siege engines can change ownership and siege engines with no units around them at all (not counting other siege engines and buildings) turn neutral passive.
I can't find an event that would go about to accomplish this. The "a unit comes within range" event is useless and when it is added from another trigger it becomes impossible to alter conditions as they would be targeting either 'the last created unit' or whatever value of a variable that inevitably will have to changed with each siege engine on the field.
Is there are trigger I could make using "periodic event" event and some condition to achieve my goals?