Jump to content
Sign in to follow this  
Wilson543210

Init.sqf structure help

Recommended Posts

My knowledge for scripting is very limited in this, but I am using multiple scripts that require me to edit the init.sqf file. However, when I copy-paste them, I don't know whether to put the // or where to put it. These are two of the strings I need to combine.

// needed for Ai Shoots Flares script.

AIsoldierFlare_units = [];

and

//Finish world initialization before mission is launched.

finishMissionInit;

An explanation to this would be also amazing. What does the // represent? A break in it? And if I put code like right next to it, would it still work?

Share this post


Link to post
Share on other sites

// is for comments - anything on a line after // will not be read by the game engine

for your init.sqf example just make sure each entry is separated by a ;

AIsoldierFlare_units = [];
finishMissionInit;

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  

×