OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: muntahunta on 30 May 2004, 17:52:42
-
does anyone know how to change the hight that a unit/object starts at??
i know theres probably a post asking this... but ive looked through as much as i can, and i cant find it anywhere
-
Unit SetPos (GetPos This Select 0, GetPos This Select 1, x)Unit = Unit you want to place at designated height
x = height you want unit to start at
Beware the GrimMonkey
-
If you want an AI Aircraft to fly at a certain height, you can use:
this flyInHeight #
where as the # is the height in feet
example this flyInHeight 2000 will fly the AI aircraft at 2000 feet.
-
2000 is a bit of an exaggeration i think... only planes can go this high and i dont think the AI will take the planes as high as this will they?
Rhys
-
Well if you setpos a plane near 10000 or something like that (i haven't found the boundery line yet) it does not fly at all, it instantly is in the ground and destoyed. THis might just be my com's reaction but I don't think so cause I tested it over 20 times. Helis are weird as the the air gets thinner up there the rotors don't work and you spin like a top in all directions. Good fun to be had even if the mechanics have to clean out the cockpit since the pilot didn't have a barf bag.
-
you can control plane like this
plane Animate ["LeftGear", 0]
plane Animate ["RightGear", 0]
plane Animate ["RearGear", 0]
plane Animate ["NoseGear", 0]
plane Animate ["LeftGear", 1]
plane Animate ["RightGear", 1]
plane Animate ["RearGear", 1]
plane Animate ["NoseGear", 1]