Comrades in Arms Discussion Board

Full Version: Understanding init.sqf
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(07-14-2013, 11:00 AM)Outlawz7 link Wrote: [ -> ]For UPSMON, do I need to add anything else to the init or just call compile preprocessFileLineNumbers "scripts\Init_UPSMON.sqf";?

Nothing else, except the calls inside unit's waypoints or init fields to make them use UPSMON. And you need to take care to place the call at the end of init.sqf because it calls sleep, so anything after the call is post-briefing.
(07-14-2013, 11:57 AM)Alwarren link Wrote: [ -> ]Nothing else, except the calls inside unit's waypoints or init fields to make them use UPSMON. And you need to take care to place the call at the end of init.sqf because it calls sleep, so anything after the call is post-briefing.

One thing to note about UPSMON: It will wait for time to actually pass. That means, if you call it during init.sqf, subsequent commands in init.sqf (after the call to UPSMON) will NOT be executed until the mission starts.

Therefore, I suggest to put this call to init UPSMON at the very end of init.sqf
Pages: 1 2