Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. /*
  2. File: fn_pulloutAction.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Pulls civilians out of a car if it's stopped.
  7. */
  8. private["_crew"];
  9. _crew = crew cursorTarget;
  10.  
  11. {
  12. if(playerSide == civilian && (_x getVariable "restrained")) then
  13. {
  14. _x setVariable ["transporting",false,true]; _x setVariable ["Escorting",false,true];
  15. [_x] remoteExecCall ["life_fnc_pulloutVeh",_x];
  16. };
  17.  
  18. if(playerSide == west) then
  19. {
  20. _x setVariable ["transporting",false,true]; _x setVariable ["Escorting",false,true];
  21. [_x] remoteExecCall ["life_fnc_pulloutVeh",_x];
  22. };
  23.  
  24. } foreach _crew;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement