I have a neutral building where players can buy units.
I would like players to be able to set a ralley point and hotkey the building, which is not possible at the moment, because its neutral.
A ralley point of course woule be possible with a complex trigger workaround where i strore all the set rally points in variables and then move new units via trigger... but is there an easier soltion?
Also with the hotkey issue... does anybody have a good idea here ?
Change whole unit owner ship to nearest Unit controlling player with triggers. And if other unit comes to range of a building or no unit detected change owner to 0 neutral player.
If you want to store the rally point for each player then no, there's no good solution. You could try with dummy units owned by each player, but at that point using triggers probably is simpler and cleaner.
If there's only one of these structures you could place one for each player and add a "hero" button for easy selection (or use triggers to mess with control groups), you could still set its vision range to 0 and deactivate its abilities if no other units owned by that player are nearby.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a neutral building where players can buy units. I would like players to be able to set a ralley point and hotkey the building, which is not possible at the moment, because its neutral. A ralley point of course woule be possible with a complex trigger workaround where i strore all the set rally points in variables and then move new units via trigger... but is there an easier soltion? Also with the hotkey issue... does anybody have a good idea here ?
Change whole unit owner ship to nearest Unit controlling player with triggers. And if other unit comes to range of a building or no unit detected change owner to 0 neutral player.
If you want to store the rally point for each player then no, there's no good solution. You could try with dummy units owned by each player, but at that point using triggers probably is simpler and cleaner.
If there's only one of these structures you could place one for each player and add a "hero" button for easy selection (or use triggers to mess with control groups), you could still set its vision range to 0 and deactivate its abilities if no other units owned by that player are nearby.