Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. scriptName "fn_proximityCheck";
  2. /*--------------------------------------------------------------------
  3. Author: Maverick (ofpectag: MAV)
  4. File: fn_proximityCheck.sqf
  5.  
  6. <Maverick Applications>
  7. Written by Maverick Applications (www.maverick-apps.de)
  8. You're not allowed to use this file without permission from the author!
  9. --------------------------------------------------------------------*/
  10. #define __filename "fn_proximityCheck.sqf"
  11.  
  12. _vehicle = param[0,objNull,[objNull]];
  13. _isNotAttackable = ((str playerSide) in (getArray(missionConfigFile >> "Maverick_ConvoySidemission" >> "Config" >> "SidesNotAttackable")));
  14. if (isNull _vehicle) exitWith {};
  15.  
  16. while {!isNull _vehicle} do {
  17. sleep 1;
  18. if ((player distance _vehicle < 7.5 &&) !_isNotAttackable) then {
  19. if (isNil "mav_convoy_attackme_scriptthread") then {
  20. [] spawn mav_convoy_fnc_attackMe;
  21. };
  22. };
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement