Home   Help Search Login Register  

Author Topic: defining separate commands in the init line  (Read 950 times)

0 Members and 1 Guest are viewing this topic.

ninjapirate

  • Guest
defining separate commands in the init line
« 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

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: defining separate commands in the init line
« Reply #1 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..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

ninjapirate

  • Guest
Re: defining separate commands in the init line
« Reply #2 on: 26 Jun 2006, 22:36:02 »
actualy it does work in the init field. but thanks for the help.