Files
AltisLifeFramework/Altis_Life.Altis/initPlayerLocal.sqf
Benjamin Kyd c8014ec81e initial commit
2019-06-05 00:45:50 +01:00

20 lines
656 B
Plaintext

#include "script_macros.hpp"
/*
File: initPlayerLocal.sqf
Author:
Description:
Starts the initialization of the player.
*/
if (!hasInterface && !isServer) exitWith {
[] call compile preprocessFileLineNumbers "\life_hc\initHC.sqf";
}; //This is a headless client.
#define CONST(var1,var2) var1 = compileFinal (if (var2 isEqualType "") then {var2} else {str(var2)})
#define LIFE_SETTINGS(TYPE,SETTING) TYPE(missionConfigFile >> "Life_Settings" >> SETTING)
CONST(BIS_fnc_endMission,BIS_fnc_endMission);
if (LIFE_SETTINGS(getNumber,"spyGlass_toggle") isEqualTo 1) then {[] execVM "SpyGlass\fn_initSpy.sqf";};
[] execVM "core\init.sqf";