Home   Help Search Login Register  

Author Topic: SOLVED: Trigger Height  (Read 1412 times)

0 Members and 1 Guest are viewing this topic.

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
SOLVED: Trigger Height
« on: 03 Jul 2007, 13:19:59 »
A simple question that has been asked before nodoubt, but after much searching i cannot find an answer - is it possible to set height of a trigger from the ground so that flying units do not activate it?

I am building a mission where the player has to return to base and land helicopter, but i do'nt wish to activate the said trigger until he gets out of heli.

I've tried using a small trigger (1x1) in a tent which is near the heli pad, but sometimes the heli flys over trigger and activates it before landing. Need away to prevent this from happening while airborne.

Any help much thankful for
« Last Edit: 25 Jul 2007, 13:55:58 by Carroll »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Trigger Height
« Reply #1 on: 03 Jul 2007, 14:03:27 »
You may setPos triggers, but as far as I remember, the height of this pos is always above sea level. So _trigger1 setPos [2000,3000, 0] would place the trigger at sea level even if that position is covered by mountains.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Trigger Height
« Reply #2 on: 03 Jul 2007, 14:41:49 »
Setpossing the trigger does not help though, the trigger area has no z axis..

What you need to do is to add a condition to the trigger condition field that let's the trigger activate only when the player is not in a vehicle and under a certain height..

Something like (this is just example, most likely won't work as is..)
Code: [Select]
(vehicle player) == player && (position player select 2)<2
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Trigger Height
« Reply #3 on: 03 Jul 2007, 19:02:59 »
Best way to set trigger not to activate for aircraft is to check the class of objects in the trigger's list:
Code: [Select]
this && "LAND" countType thisList > 0
urp!

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Re: Trigger Height
« Reply #4 on: 04 Jul 2007, 08:51:29 »


This works fine for what i want Mr. Peanut, thanks to all for your help and knowledge



Removed unnecessary quote - Planck
« Last Edit: 04 Jul 2007, 14:04:10 by Planck »