esham Posted November 4, 2013 Report Share Posted November 4, 2013 How can I merge both... if (!isDedicated) then {[] execVM "Scripts\kh_actions.sqf"; and... if (!isDedicated) then {[] execVM "safezone.sqf";}; on a single line so both scripts can work? Thanks in advance :D Link to comment Share on other sites More sharing options...
0 DoS-gaming Posted November 4, 2013 Report Share Posted November 4, 2013 if (!isDedicated) then { //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); _nil = [] execVM "custom\remote_messages.sqf"; //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; [] execVM "safezone.sqf"; [] execVM "custom\kh_actions.sqf"; }; Just make sure its between the { and }; you don't need 2 times if (!isDedicated) then { Hope this helps :) Link to comment Share on other sites More sharing options...
0 esham Posted November 4, 2013 Author Report Share Posted November 4, 2013 Very helpful, Thank You!! Link to comment Share on other sites More sharing options...
0 WadeWilson Posted November 4, 2013 Report Share Posted November 4, 2013 Thanks, helped me too! Link to comment Share on other sites More sharing options...
0 prominentalex Posted November 4, 2013 Report Share Posted November 4, 2013 I always put them at the end, reassures me there won't be any problems. Link to comment Share on other sites More sharing options...
Question
esham
How can I merge both...
and...
on a single line so both scripts can work? Thanks in advance :D
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now