OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: titan on 06 Apr 2003, 19:11:34
-
firstly what exactly is a gamelogic and how wld u use it in a mission, ive ssen it in missions but never used it my self.
and secondly...what goes in between the sqaure brackets of a script [...]exec "....sqs". is it a unit name or smething?
-
Game logics are mostly used as cameras in cutscenes.
[] exec "something.sqs"
the [] doesnt stand for anything as far as i know, you can just put it in the init field of anything you want, and they will exec it.
-
1. A GL is an invisible thingy, that you could use for several different things. For example give a unit a go order to the position where the GL is, camcreate a bomb there or setpos sumthin there.
2. That is different from script to script. Read SnYpirs introduction to code snippets.
-
Armstrong's advice is sound. A gamelogic is just an invisible unit. It can do pretty much anything a unit can do: follow waypoints, ride in trucks (handy for when you want the seat next to the driver to be empty, but you want some loons in the back), all kinds of things.
For many scripts, you put nothing at all between the square brackets []. When you do, it is specific to that script. It could be a unit, or several units, or markers or whatever.
-
Thanks macguba. just browsing actually made me realise i could save seats in trucks with GL. Never thought of it. this has to go in an upcoming mission. 8)