the problem is that the buildings will be destroyed and fought over by two teams of players.
so I want to write one trigger that will capture when any unit gets close enough to a capturable objective, as long as that structure is of the correct unit type
any unit enters a distance of 10.0 from any unit of unit type (supply depot)
Make an Ability of type Interact in the Data Editor and set the its Flags to Share Control. You can duplicate the Tower Capture ability to start you off.
I solved the problem a different way. Since all of the buildings will be able to attack, I set up a trigger to change ownership when they acquire a target
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
need help writing this trigger:
a neutral player initially has these buildings, but if you bring one of your units close to them, you are given control of the building?
Triggers. Attach locations to whatever buildings, then have the event be 'Unit Enters Region' and when they do, just change ownership.
@Zetal: Go
the problem is that the buildings will be destroyed and fought over by two teams of players.
so I want to write one trigger that will capture when any unit gets close enough to a capturable objective, as long as that structure is of the correct unit type
any unit enters a distance of 10.0 from any unit of unit type (supply depot)
Make an Ability of type Interact in the Data Editor and set the its Flags to Share Control. You can duplicate the Tower Capture ability to start you off.
@Klishu: Go
I solved the problem a different way. Since all of the buildings will be able to attack, I set up a trigger to change ownership when they acquire a target