Results 1 to 2 of 2

Thread: Height Restrictions

  1. #1

    Height Restrictions

    Hi, I am trying to make a mission on Take on Helicopters using the mission editor, and for part of it, I would like to set a height restriction for the player flying a helicopter, stopping them from flying too high. How do I set height restrictions for the player as they travel through various way points in a helicopter?

  2. #2
    1. You could destroy the player or his aircraft. Place a trigger with

    Code:
    * zero a axis and zero b axis
    * repeated
    * condition: ((position (vehicle player)) select 2) > XXX
    * activation: (vehicle player) setdamage 1;
    2. You can push down the aircraft when it exceeds a certain height. Place a trigger with

    Code:
    * zero a axis and zero b axis
    * repeated
    * condition: ((position (vehicle player)) select 2) > XXX
    * activation: (vehicle player) setpos [(position (vehicle player)) select 0, (position (vehicle player)) select 1, (position (vehicle player)) select 2)-20];
    Replace XXX by your custom height.


    You may also want to include a warning hint that shows up before the altitude limit is reached:

    Code:
    * zero a axis and zero b axis
    * repeated
    * condition: ((position (vehicle player)) select 2) > XXX
    * activation: 0 cuttext ["THE MAXIMUM ALTITUDE IS 300 METRES","plain down",0];
    XXX might be "limit - 100" or "limit - 50" or whatever you think to be useful.

    Remind, when you fly over a mountain, your current altitude raises instantly to a much higher value from one second to the other when you have passed the mountain.
    Last edited by RogueTrooper; Jul 29 2012 at 07:55.

Similar Threads

  1. New serverCommand restrictions?
    By bravo1romeo in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 1
    Last Post: Apr 16 2011, 19:06
  2. Ping restrictions
    By Zipper5 in forum ARMA 2 & OA - MULTIPLAYER
    Replies: 31
    Last Post: Jul 2 2010, 20:24
  3. But how to take away restrictions on making the gr
    By Valeriy in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 0
    Last Post: Dec 11 2002, 21:52
  4. How to take away restrictions?
    By Valeriy in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 2
    Last Post: Dec 10 2002, 21:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •