fnc_volatile_destroy.sqf 336 B

1234567891011
  1. params["_target"];
  2. private _position = getPosATL _target;
  3. private _explosive = createVehicle ["RD501_Explosive_Barrel", _position, [], 0, "CAN_COLLIDE"];
  4. hideObject _explosive;
  5. _explosive setPosATL _position;
  6. _explosive setDamage [1, true];
  7. [{
  8. params["_target"];
  9. deleteVehicle _target;
  10. }, [_target], 0.5] call CBA_fnc_waitAndExecute;