What I’m trying to do is making a trigger in which allows a player to capture unit. I saw one solution but I can’t use that because these neutral units will be wandering around the map and fighting until someone comes in contact with them beside the hostile player.
Also if possible i would also like help with a temporary building version of this in which as unit move to use a bunker it becomes their and once they leave it. it becomes neutral again.
Ok i manage to make some progress on the trigger.
events: Unit- any unit acquires a target
condition: owner of trigger unit == 14
action: unit change ownership of triggering unit to player 1 and change color
the problem is now is that i need this to only happen when a user player is targeted by player 14 which is the survivors and not the hostile player.
do u want the player to be able to capture the unit as soon as he aquires it? or after he's dealt some damage to it, or when the unit is at a certain amount of health or what?
what i would do is -
make the event "unit takes damage" leave all defaults
Condition "damaging player != (not equal) 15 (hostile Player)
owner of trigger unit == 14
Set actions to: Change ownership of Triggering unit to Damaging player and change color
lets say you wanted to make it so the damaging unit (unit being captures) has to be at 25% health to be captures, add a condition that says "(Triggering Unit) life (percent) <= 25%
to be honest anything works is fine by me although i would like to keep the damage to the minmal as the hostile enemies do hit hard. i have it setup where being outside in the open is a very very bad idea unless your in a big group
What I’m trying to do is making a trigger in which allows a player to capture unit. I saw one solution but I can’t use that because these neutral units will be wandering around the map and fighting until someone comes in contact with them beside the hostile player.
Also if possible i would also like help with a temporary building version of this in which as unit move to use a bunker it becomes their and once they leave it. it becomes neutral again.
Moved for you, you might find better help here
Ok i manage to make some progress on the trigger. events: Unit- any unit acquires a target condition: owner of trigger unit == 14 action: unit change ownership of triggering unit to player 1 and change color
the problem is now is that i need this to only happen when a user player is targeted by player 14 which is the survivors and not the hostile player.
do u want the player to be able to capture the unit as soon as he aquires it? or after he's dealt some damage to it, or when the unit is at a certain amount of health or what?
what i would do is -
make the event "unit takes damage" leave all defaults
Condition "damaging player != (not equal) 15 (hostile Player)
owner of trigger unit == 14
Set actions to: Change ownership of Triggering unit to Damaging player and change color
lets say you wanted to make it so the damaging unit (unit being captures) has to be at 25% health to be captures, add a condition that says "(Triggering Unit) life (percent) <= 25%
to be honest anything works is fine by me although i would like to keep the damage to the minmal as the hostile enemies do hit hard. i have it setup where being outside in the open is a very very bad idea unless your in a big group
ok, than just leave out the condition that checks to see what life (percent) the triggering unit is at, and it'll work