Jump to content
Sign in to follow this  
jeppelykke

Load a script

Recommended Posts

Hey !

I currently trying to play with "scripts" like when a person enters a "trigger" insted of writteing alot of "lines in that littel edit box" i like it to run a script, is that possible and if so, what is the command to run the script?

Oh btw, If i make a MP with a script does that also get download with the map when i host the game?

Kindly regards

Jeppe Lykke, Denmark

Share this post


Link to post
Share on other sites

To understand, how to run a script, you should go for

a scripting tutorial.

You can easily run a script by typing: [] exec "script.sqs"

in the activation field of a trigger,

but there are some more ways to run a script.

You can pass arrays to the script, or you can run a script

and use all those units, which are inside the trigger area

at the moment. Therefore i recomend you to go for a scripting

tutorial at e.g: www.ofpeditingcenter.com

As i told you in a previous thread, if you export your mission

from user folder (mission.sqm format) to single/multiplayer

(pbo format) all seperate files inside your user mission folder

will be packed together into a pbo file.

And yes it will be downloaded from clients while loading

the mission.

It won't be downloaded, if you only host the custom mission.

The difference between custom mission and finalized mission,

you can also see where you select your missions when hosting. The custom missions show up in yellow characters,

and the finalized mission in green ones.

hope this helps again

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  

×