Comrades in Arms Discussion Board
Understanding init.sqf - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: Understanding init.sqf (/showthread.php?tid=2359)

Pages: 1 2


Re: Understanding init.sqf - Alwarren - 07-14-2013

(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.


Re: Understanding init.sqf - Varanon - 07-15-2013

(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