Brutal500 10 Posted February 16, 2014 Hey Guys :o I really need your help on this, Im a complete nawb when it comes down to c++ :mad: I need to have this code working : [1,0,1] execVM "SBV.sqf"; this is the argument : if(!isNil "_this select 0") then { reverbToggle = _this select 0; }; if(isNil "reverbToggle") then {reverbToggle = 0}; if(!isNil "_this select 1") then { blinkingToggle = _this select 1; }; if(isNil "blinkingToggle") then {blinkingToggle = 1}; if(!isNil "_this select 2") then { meleeToggle = _this select 2; }; if(isNil "meleeToggle") then {meleeToggle = 1}; Best regards // Brutal ^ Share this post Link to post Share on other sites
Ranwer135 308 Posted February 16, 2014 have you tried this: null = execVM "myscript.sqf"; Share this post Link to post Share on other sites
Brutal500 10 Posted February 16, 2014 then it will run all the code right ? I fixed my problem by deleting some of the code ... not the best way but it works for now. But would be really helpful if anyone could make the argument right. Customize which settings are to be enabled/disabled-example below- [1,0,1] execVM "SBV.sqf"; - Terrain Reverb enabled, blinking disabled, AI melee enabled. see Link to the script here ! Share this post Link to post Share on other sites
UNN 0 Posted February 16, 2014 As you're passing all three of the required values, you only need the following in your script: reverbToggle = _this select 0; blinkingToggle = _this select 1; meleeToggle = _this select 2; Share this post Link to post Share on other sites
Brutal500 10 Posted February 16, 2014 As you're passing all three of the required values, you only need the following in your script: reverbToggle = _this select 0; blinkingToggle = _this select 1; meleeToggle = _this select 2; Ty sir, you are Boss ! have a awesome day :) ---------- Post added at 09:17 ---------- Previous post was at 09:14 ---------- Dear god i can't type..... /facepalm *** Ty, Sir you are the BAWS !!! Have a wonderful day :) Share this post Link to post Share on other sites