alright so i have a trigger, that if any unit enters region.
then, a certain unit in that region is rescued to the triggered player.
i have this condtion-> (Owner of (Triggering unit)) == User
The problem is any unit enters a region and takes that unit, but What condition do i add to make it where if another player is present in the region, to not let me rescue?
and my trigger is in a big giant switch.. if that helps any
alright so i have a trigger, that if any unit enters region.
then, a certain unit in that region is rescued to the triggered player.
i have this condtion-> (Owner of (Triggering unit)) == User
The problem is any unit enters a region and takes that unit, but What condition do i add to make it where if another player is present in the region, to not let me rescue?
and my trigger is in a big giant switch.. if that helps any
You can either turn the trigger off afterward so nobody can rescue it anymore.
If that's not what you want, then add a condition checking if the Unit is equal to the original player. (Like if the unit is regularly neutral, then 0.) Afterward, you will want to add a trigger that checks when the player leaves the region.
Example:
Capture Events
Any unit enters region blah blah blah Conditions
(Unit on map) is controlled by player 0 Actions
Give unit to player
UnCapture Events
Any unit leaves region blah blah blah Conditions
(Owner of (Triggering Unit)) is equal to (Owner of (Unit on map)) Actions
Give unit to player 0 (neutral)
Ah what i mean was, the unit in that region is recapturable between all players, But right now i have it where i can fly into that region with a wraith, and the enemy has like 10 units in the region... It would still give me the region eventho he or she outnumbers me, althought he or she can just use a unit and walk back in an out and retreive it, but its a big map and yeah...
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
alright so i have a trigger, that if any unit enters region.
then, a certain unit in that region is rescued to the triggered player.
i have this condtion
-> (Owner of (Triggering unit)) == UserThe problem is any unit enters a region and takes that unit, but What condition do i add to make it where if another player is present in the region, to not let me rescue?
and my trigger is in a big giant switch.. if that helps any
You can either turn the trigger off afterward so nobody can rescue it anymore.
If that's not what you want, then add a condition checking if the Unit is equal to the original player. (Like if the unit is regularly neutral, then 0.) Afterward, you will want to add a trigger that checks when the player leaves the region.
Example:
Capture
Events
Any unit enters region blah blah blah
Conditions
(Unit on map) is controlled by player 0
Actions
Give unit to player
UnCapture
Events
Any unit leaves region blah blah blah
Conditions
(Owner of (Triggering Unit)) is equal to (Owner of (Unit on map))
Actions
Give unit to player 0 (neutral)
Ah what i mean was, the unit in that region is recapturable between all players, But right now i have it where i can fly into that region with a wraith, and the enemy has like 10 units in the region... It would still give me the region eventho he or she outnumbers me, althought he or she can just use a unit and walk back in an out and retreive it, but its a big map and yeah...