Jump to content
Sign in to follow this  
jordanbache97

Noob question regarding Init script

Recommended Posts

hey guys I am this custom ammo box can I am trying to activate it through the box's init and it says "Missing ;" here is what I am putting in the init

 

"this addAction ["Open Virtual Arsenal", {null = [_this] execVM "virtual_arsenal_init.sqf";

 

and it wont let me put it in maybe I am overlooking somthing but I cant see anything wrong, if you know can you please reply.

 

Jordan

Share this post


Link to post
Share on other sites

Missing some brackets.

Try this:

this addAction ["Open Virtual Arsenal", {null = [_this] execVM 'virtual_arsenal_init.sqf'}];

Share this post


Link to post
Share on other sites

Well you are missing a close bracket }] which I think should be between the .sqf and the ;

 

So should look like this:-

this addAction ["Open Virtual Arsenal", {null = [_this] execVM "virtual_arsenal_init.sqf}]";











 dam too late ;)

Share this post


Link to post
Share on other sites

Thanks a bunch guys, been doing so much in the editor for my unit I was just overlooking things, thanks for the help

Share this post


Link to post
Share on other sites

Get Notepad ++  or a similar tool, with syntax highlighting. Those tools will usually also show you if a bracket is missing.

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  

×