Advertisement
7CavArma

Attach chemlight to zeus placed units

May 2nd, 2022
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.38 KB | None | 0 0
  1. // Needs to be placed in GameMaster module init
  2.  
  3. this addEventHandler ["CuratorObjectPlaced", {
  4.     params ["_curator", "_entity"];
  5.     _chem = createVehicle ["chemlight_blue", position _entity, [], 0, "NONE"];
  6.     _chem attachto [_entity,[0,-0.03,0.07],"leftshoulder"];
  7.     _unit setVariable ["hasChem", true];
  8.     _unit addEventHandler ["Killed", {
  9.         params [];
  10.         detach _chem;
  11.     }];
  12. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement