I tried to do something in my init.sqf to check freshSpawned players with this:
if (!isDedicated) then {
customscript = compile preprocessFileLineNumbers "freshspawn\custom.sqf";
if(freshSpawn == 2) then {
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
player spawn customscript;
};
};
but i get this error.
if(freshSpawn == 2) then {
waitUntil {!isNi>
Error position: <freshSpawn == 2) then {
waitUntil {!isNi>
Error Undefined variable in expression: freshspawn
File mpmissions\__CUR_MP.Chernarus\init.sqf, line 193
I thought the freshSpawn variable was introduced in 1.3.0....Is it taken out in 1.3.0.1 ?
Cause i see it in the player_monitor.fsm and i am not overwriting those file paths
-Thanks
ps: I DO NOT want to use if (dayzPlayerLogin2 select 2) then ...
That s****t is bugged....it doesnt always return the 3rd parameter (should return false...but its just empty) causing tons of problems.
EDIT: I see that freshSpawn is still there...but yea just not working. The variable does not load in init.sqf
Did anyone try this before release ?.....

