OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ninjapirate on 26 Jun 2006, 04:45:13

Title: defining separate commands in the init line
Post by: ninjapirate on 26 Jun 2006, 04:45:13
sorry if this has been answered before but i know so little about scripting im not even sure of the name of what i need.

what im trying to figure out is how to separate simple command lines in the init field of units. for example i wanted to make an airplane that would fly me about to observe a battle i was making and not get shot at or hit by stray fire, so i needed to put in "this flyinheight" and "this setcaptive" in the init field. but i dont know how to separate the commands :(
all i get is "missing blah blah )" or unknown operator error.

when it comes to code/scripts, i know absolutly nothing<--no joke
Title: Re: defining separate commands in the init line
Post by: h- on 26 Jun 2006, 08:31:10
Code: [Select]
this flyInHeight 50; this setCaptive trueYou separate lines with ;

Note that flyInHeight probably works best used in waypoints, not sure if it even has an effect when used in a unit's init field..
Title: Re: defining separate commands in the init line
Post by: ninjapirate on 26 Jun 2006, 22:36:02
actualy it does work in the init field. but thanks for the help.