OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tim Pink on 07 May 2003, 13:40:19

Title: Landing choppers on buildings
Post 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?
Title: Re:Landing choppers on buildings
Post by: Knut Erik on 07 May 2003, 14:35:41
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 ?  ::)
Title: Re:Landing choppers on buildings
Post by: SimonRussi on 07 May 2003, 14:55:12
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
Title: Re:Landing choppers on buildings
Post by: Wadmann on 07 May 2003, 22:48:21
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.
Title: Re:Landing choppers on buildings
Post by: Tim Pink on 08 May 2003, 06:39:43
ok how does the "game logic and [x,y,z] thing work.