Wargames:Help Site:Customize WGL:What is WGLInitSP sqs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
 
Line 17: Line 17:
# Add any content you like to get executed for every mission you load in singleplayer.
# Add any content you like to get executed for every mission you load in singleplayer.


{{Important|NOTE: As the name indicates, this script will not be run in multiplayer.}}
{{Feature|important|NOTE: As the name indicates, this script will not be run in multiplayer.}}

Latest revision as of 02:09, 7 February 2021

What is WGLInitSP.sqs

Basic Overview and Idea

WGL 5.1 will try to execute a custom script named wglinitsp.sqs when you play offline, in single-player mode.

To use your own custom SP init stuff, place a script named wglinitsp.sqs in a folder ...\OFP\Users\Playernick\scripts.

The wglinitsp.sqs gives you the possibility to execute scripts independent to a mission implementation in single-player. So for example you could call a script to generate grass around the player in every mission.


HowTo

  1. The folder scripts in ...\OFP\Users\Playernick does not exist by default, so you'll need to create it.
  2. Create a text file in the scripts folder and rename it to wglinitsp.sqs.
  3. Add any content you like to get executed for every mission you load in singleplayer.
NOTE: As the name indicates, this script will not be run in multiplayer.