Wargames:Help Site:Customize WGL:What is WGLInitSP sqs

From Bohemia Interactive Community
Revision as of 11:29, 27 March 2011 by .kju (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.