OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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..
-
actualy it does work in the init field. but thanks for the help.