Advertisement
T4L80TT

Disable environmental damage

Jan 13th, 2020 (edited)
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.27 KB | None | 0 0
  1. //Nullifies the damage taken through hitting ground.
  2.  
  3. nolandDamage = {
  4.     _damage = 0;
  5.     if((_this select 4) != "") then {
  6.     _damage = _this select 2;
  7.     };
  8. _damage
  9. };
  10. { _x addEventHandler ["HandleDamage", { _this call nolandDamage }]; } foreach (units (group player));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement