Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
thetrooper

Make unit invicible

Recommended Posts

Anyone know a scipt to make a unit invincible (not die) and then later make it so it can die again?

Share this post


Link to post
Share on other sites

Another way

unit addEventHandler ["Hit",{false}];

Only works locally, use MPHit equivalent when in MP. Remove with removeEventHandler.

Share this post


Link to post
Share on other sites

Any way to make all units mortal and basically fix some units being invincible?

Share this post


Link to post
Share on other sites
On 1/18/2025 at 2:49 PM, Reticuli said:

Any way to make all units mortal and basically fix some units being invincible?

{
    _x allowDamage true;
} forEach allUnits;

 

Share this post


Link to post
Share on other sites
On 1/18/2025 at 9:49 PM, Reticuli said:

Any way to make all units mortal and basically fix some units being invincible?

Spawned in game or edited (i.e. existing at start)?

Share this post


Link to post
Share on other sites

×