Jump to content
Sign in to follow this  
Brutal500

Need help with this code :S

Recommended Posts

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

have you tried this:

null = execVM "myscript.sqf";

Share this post


Link to post
Share on other sites

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

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
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 :) :yay:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×