Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. /*
  2. File: fn_initCiv.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Initializes the civilian.
  7. */
  8. private["_spawnPos"];
  9. civ_spawn_1 = nearestObjects[getMarkerPos "civ_spawn_1", ["Land_i_Shop_01_V1_F","Land_i_Shop_02_V1_F","Land_i_Shop_03_V1_F","Land_i_Stone_HouseBig_V1_F"],250];
  10. civ_spawn_2 = nearestObjects[getMarkerPos "civ_spawn_2", ["Land_i_Shop_01_V1_F","Land_i_Shop_02_V1_F","Land_i_Shop_03_V1_F","Land_i_Stone_HouseBig_V1_F"],250];
  11. civ_spawn_3 = nearestObjects[getMarkerPos "civ_spawn_3", ["Land_i_Shop_01_V1_F","Land_i_Shop_02_V1_F","Land_i_Shop_03_V1_F","Land_i_Stone_HouseBig_V1_F"],250];
  12. civ_spawn_4 = nearestObjects[getMarkerPos "civ_spawn_4", ["Land_i_Shop_01_V1_F","Land_i_Shop_02_V1_F","Land_i_Shop_03_V1_F","Land_i_Stone_HouseBig_V1_F"],250];
  13. waitUntil {!(isNull (findDisplay 46))};
  14.  
  15. if(life_is_arrested) then
  16. {
  17. life_is_arrested = false;
  18. [player,true] spawn life_fnc_jail;
  19. }
  20. else
  21. {
  22. [] call life_fnc_spawnMenu;
  23. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  24. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  25. };
  26. [] execVM "msgbienvenueCiv.sqf";
  27. player addR&ating 9999999;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement