Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. /*
  2. File: fn_initCiv.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Initializes the civilian.
  7. */
  8.  
  9. // TFR Variables API
  10. tf_no_auto_long_range_radio = true;
  11.  
  12. TF_terrain_interception_coefficient = 1;
  13.  
  14. private["_spawnPos"];
  15. //civ_spawn_1_1 = nearestObjects[getMarkerPos "civ_spawn_1_1", ["Land_House_C_10_EP1","Land_House_C_9_EP1","Land_House_C_3_EP1","Land_House_C_11_EP1"],250];
  16. //civ_spawn_2 = nearestObjects[getMarkerPos "civ_spawn_2", ["Land_House_C_10_EP1","Land_House_C_9_EP1","Land_House_C_3_EP1","Land_House_C_11_EP1"],250];
  17. //civ_spawn_3 = nearestObjects[getMarkerPos "civ_spawn_3", ["Land_House_C_10_EP1","Land_House_C_9_EP1","Land_House_C_3_EP1","Land_House_C_11_EP1"],250];
  18. //civ_spawn_4 = nearestObjects[getMarkerPos "civ_spawn_4", ["Land_House_L_4_EP1","Land_House_L_6_EP1"],250];
  19. waitUntil {!(isNull (findDisplay 46))};
  20.  
  21. if(life_is_arrested) then
  22. {
  23. life_is_arrested = false;
  24. [player,true] spawn life_fnc_jail;
  25. }
  26. else
  27. {
  28. [] call life_fnc_spawnMenu;
  29. [] execVM "scripts\welcome.sqf";
  30. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  31. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  32. };
  33. player addRating 9999999;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement