Jump to content
Sign in to follow this  
Bravo33

trying to run multiple .sqf in INIT

Recommended Posts

I am trying to run 2 sqf's within the INIT and cannot figure out the syntax.

I am using Kronsky's unit patrol script and want to implement the track script.

I have created a game logic for the patrol script names "server" and a game logic for the tracker ,names "server_1"

The text string within the INIT of the unit is:-

nul=[this,"Alpha","RANDOM","MIN:",1,"MAX:",6] execVM "ups-f.sqf"

What is the syntax within the above call for the tracker.sqf?

Share this post


Link to post
Share on other sites

The top of the script has several examples listed on how to call it. Check it for some of the optional parameters.

The basic call syntax is: nul=[this] execVM "track.sqf"

In order to call two separate scripts (or commands) from the init line you have to separate them by semicolons:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nul=[this,"Alpha","RANDOM","MIN:",1,"MAX:",6] execVM "ups-f.sqf"; nul=[this] execVM "track.sqf"

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  

×