OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: titan on 04 Apr 2003, 22:30:34
-
im starting to make my own scripts, and i dont know what needs to go in between the [ & ]. Any help?
-
[an array of the variables you want to send to the script]
eg [soldier1,tank1]
you should really look at the tutorials for the basics
-
so its basically the name of smething u want to effect, say u have a man called aP, then you wld put in a trigger [aP]exc "....sqs" ?!?
if this is so, then what wld u put for it to pick up a marker?
im off over to the tut section now!!
-
ok, heres my script (which is most likely missing loads of stuff)
_nade1 = "grenade" camcreate getmarkerpos "nade1_1"
_nade2 = "grenade" camcreate getmarkerpos "nade1_2"
_nade3 = "grenade" camcreate getmarkerpos "nade1_3"
so basically where ever there is a marker called "nade1_1" etc there will be a nade created when the script is activated. (markers will be made in Editor and exported into mission, so is basically a fixed marker).
so what if anything ami missing from the script. and what would i put in the [ ] if say i wanted it to be activated by radio alpha?
-
ok, heres my script (which is most likely missing loads of stuff)
_nade1 = "grenade" camcreate getmarkerpos "nade1_1"
_nade2 = "grenade" camcreate getmarkerpos "nade1_2"
_nade3 = "grenade" camcreate getmarkerpos "nade1_3"
so basically where ever there is a marker called "nade1_1" etc there will be a nade created when the script is activated. (markers will be made in Editor and exported into mission, so is basically a fixed marker).
so what if anything ami missing from the script. and what would i put in the [ ] if say i wanted it to be activated by radio alpha?
-
YOu dont need to put anything in the [] if that is your script :)