Jump to content
Sign in to follow this  
1para{god-father}

Silvie Module Init

Recommended Posts

How can I add 2 things to the Silvie Module INIT ?

At the moment I have the folloing in the Module :-

BIS_silvie_mainscope setvariable ["vehicleInit",{[_this] execVM "bomb.sqf";}];  

This works great but i would like to lock all the cars so only Civis can drive them so i aslo need the folloing i belive ?

BIS_silvie_mainscope setvariable ["vehicleInit",{_this lock true}];

not sure how to get both working together I have tried

BIS_silvie_mainscope setvariable ["vehicleInit",{[_this] execVM "carbomb.sqf";},{_this lock true}]; 

but that does not work

Any idea how I can lock the Vehicles so only Civi can drive them as well.

Many thanks

Share this post


Link to post
Share on other sites

Either use bis_fnc_variablespaceadd:

[bIS_alice_mainscope,"ALICE_civilianinit",[{_this addweapon "Mk_48"}]] call bis_fnc_variablespaceadd;

Or separate the commands used by colon:

{[_this] execVM "bomb.sqf"; _this lock true}

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  

×