OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tim Pink on 07 May 2003, 13:40:19
-
Hi how do you make helo's land on buildings, like the office buildings in nogova?
-
You could make the chopper get over the building like this :
YourChopper move [X,Y,Z]
or
YourChopper move getpos "Name Of A game Logic On The Building"
Then you could have the chopper fly low.
YourChopper flyinheight 10-20
Adjust the hight to your suits.
You may need to make the chopper careless and combatmode blue.
YourChopper setcombatmode "Blue"
YourChopper setbehaviour "careless"
Does this help ? ::)
-
make your chopper move near the building as Erik said then setpos it on the roof and if you want to stop completely remove the fuel from it. At least i do it this way ;D
simon
-
Question: Does the helicopter detect the heighth of the roof when landing or do you have to specify that in the gamelogic's "z" position. ???
If I remember correctly (and thats a BIG if), the absolute height was the top of any surface, be it ground, roof, ship, in early versions of OFP and in later versions (1.46+?) it is ground level. As I am trapped at work, I can not test this myself at this time.
-
ok how does the "game logic and [x,y,z] thing work.