missions init.sqf

does it ever runs on server? if so then when?

PS I mean on dedicated server not when client is server

Also at which point the server_functions.sqf is executed in /init on server? If I stick more files in /init will they all execute when server starts?

and is there a special meaning for /system folder or it could be called anything
Yes, init.sqf is executed on server, only once, at initialization time.
The script server_functions.sqf is executed indirectly (only once too), with this line in init.sqf:

Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";

Just putting files in /init folder will not execute the scripts, you have to explicit call/spawn/execVM them.

Folder /system should (and does) contain permanent running background stuff, like server_cleanup.fsm.
To proof the order of execution, you can simple add diag_log code in the related scripts and then check the order in your .rpt log file.
 
Back
Top