Advertisement
anden3

fuken drago

Apr 16th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.55 KB | None | 0 0
  1. {
  2.     if !(_x getVariable ["balanced", false]) then {
  3.          _x addEventHandler ["Killed", {
  4.             (_this select 0) removeAllEventHandlers "HandleDamage";
  5.         }];
  6.  
  7.         if (_x isKindOf "Burnes_FV4034_01" || _x isKindOf "Burnes_FV4034_02") then {
  8.             _x addEventHandler ["HandleDamage", { (_this select 2) * 2.0 }];
  9.         }
  10.         else {
  11.             _x addEventHandler ["HandleDamage", { (_this select 2) * 0.8 }];
  12.         };
  13.  
  14.         _x setVariable ["balanced", true];
  15.     };
  16. } forEach (vehicles select {_x isKindOf "Tank"});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement