Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_initCiv.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Initializes the civilian.
- */
- #include "..\script_macros.hpp"
- private["_spawnPos"];
- civ_spawn_1 = nearestObjects[getMarkerPos "civ_spawn_1", ["Land_Offices_01_V1_F"],150];
- civ_spawn_2 = nearestObjects[getMarkerPos "civ_spawn_2", ["Land_Shop_City_01_F"],150];
- civ_spawn_3 = nearestObjects[getMarkerPos "civ_spawn_3", ["Land_Shop_City_02_F"],150];
- civ_spawn_4 = nearestObjects[getMarkerPos "civ_spawn_4", ["Land_Shop_City_02_F"],150];
- waitUntil {!(isNull (findDisplay 46))};
- if(life_is_alive && !life_is_arrested) then {
- /* Spawn at our last position */
- player setPosWorld life_civ_position;
- } else {
- if(!life_is_alive && !life_is_arrested) then {
- if(EQUAL(LIFE_SETTINGS(getNumber,“save_civ_positionStrict”),1)) then {
- _handle = [] spawn life_fnc_civLoadout;
- waitUntil {scriptDone _handle}; CASH = 0;
- };
- [] call life_fnc_spawnMenu;
- waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
- waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
- } else {
- if(life_is_arrested) then {
- life_is_arrested = false;
- [player,true] spawn life_fnc_jail;
- };
- };
- };
- life_is_alive = true;
- player addRating 9999999;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement