OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: titan on 04 Apr 2003, 22:30:34

Title: []exc ".....sqs"
Post 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?
Title: Re:[]exc ".....sqs"
Post by: ratpack91 on 04 Apr 2003, 22:45:56
[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
Title: Re:[]exc ".....sqs"
Post by: titan on 05 Apr 2003, 00:25:13
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!!
Title: Re:[]exc ".....sqs"
Post by: titan on 05 Apr 2003, 01:11:52
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?
Title: Re:[]exc ".....sqs"
Post by: titan on 05 Apr 2003, 01:16:55
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?
Title: Re:[]exc ".....sqs"
Post by: _hammy_ on 06 Apr 2003, 00:54:26
YOu dont need to put anything in the [] if that is your script :)