Advertisement
Guest User

Flare Gun

a guest
Jan 26th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. player addEventHandler ["fired",{
  2.  
  3. _p = _this select 6;
  4. _weapon = _this select 1;
  5. _v = velocity _p;
  6. if(_weapon == "hgun_P07_F") then {
  7. _f = 'CMflare_Chaff_Ammo' createVehicle (position _p);
  8. _f setposatl (getposatl _p);_f setVelocity _v;
  9. [_p,_f] spawn {waitUntil{isNull (_this select 0)}; deleteVehicle (_this select 1);};
  10. };
  11.  
  12. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement