Arma 3
Lonfox 3. mai 2018 kl. 14.40
trigger to make unit invincible and trigger to make same unit not invincible
im trying to make a squad invincible until a player moves into a trigger that disables the invulnerability. so lets ay this enemy squad is fighting a freindly squad. friendly squad is pinned and player squad has to flank and eliminate enemy squad. but the possibility of the freindly ai squad killing the enemy squad is so high i want to make enemy squad invulnerable until player team gets in position to kill that squad. any ideas?
< >
Viser 17 av 7 kommentarer
IM SORRY BUFFALO 3. mai 2018 kl. 15.37 
give the enemy squad group a name, ill use grpEnemy as an example for their name, use the forEach command to make that entire squad invincible(were going to do the same thing to make them not invinciple as well. either in the activation box of the trigger or in a executed script put this to make them invinciple.
{ _x allowDamage false; } forEach grpEnemy;
then in the trigger that the player enters in position just put this, set conditions to any player present and put this in the activation box
{ _x allowDamage true; } forEach grpEnemy;
wouldn't it be forEach units grpEnemy;
IM SORRY BUFFALO 3. mai 2018 kl. 15.58 
Opprinnelig skrevet av Drgn V4karian:
wouldn't it be forEach units grpEnemy;
your right, thats mybad, typed offhand
Lonfox 3. mai 2018 kl. 16.40 
it works beautifully. thank you guys.
Lonfox 3. mai 2018 kl. 17.13 
Opprinnelig skrevet av IM SORRY BUFFALO:
give the enemy squad group a name, ill use grpEnemy as an example for their name, use the forEach command to make that entire squad invincible(were going to do the same thing to make them not invinciple as well. either in the activation box of the trigger or in a executed script put this to make them invinciple.
{ _x allowDamage false; } forEach grpEnemy;
then in the trigger that the player enters in position just put this, set conditions to any player present and put this in the activation box
{ _x allowDamage true; } forEach grpEnemy;

so if i had multiple groups how would i put all their names in the same string.
IM SORRY BUFFALO 3. mai 2018 kl. 17.51 
Opprinnelig skrevet av Lonfox:
Opprinnelig skrevet av IM SORRY BUFFALO:
give the enemy squad group a name, ill use grpEnemy as an example for their name, use the forEach command to make that entire squad invincible(were going to do the same thing to make them not invinciple as well. either in the activation box of the trigger or in a executed script put this to make them invinciple.
{ _x allowDamage false; } forEach grpEnemy;
then in the trigger that the player enters in position just put this, set conditions to any player present and put this in the activation box
{ _x allowDamage true; } forEach grpEnemy;

so if i had multiple groups how would i put all their names in the same string.
you should be able to just add them into the command like this
{ _x allowDamage true; } forEach (units grpEnemy) + (units grpEnemy1);
Lonfox 3. mai 2018 kl. 17.58 
Opprinnelig skrevet av IM SORRY BUFFALO:
Opprinnelig skrevet av Lonfox:

so if i had multiple groups how would i put all their names in the same string.
you should be able to just add them into the command like this
{ _x allowDamage true; } forEach (units grpEnemy) + (units grpEnemy1);

perfect thank you
< >
Viser 17 av 7 kommentarer
Per side: 1530 50

Dato lagt ut: 3. mai 2018 kl. 14.40
Innlegg: 7