Home   Help Search Login Register  

Author Topic: Detect Flying Height  (Read 986 times)

0 Members and 1 Guest are viewing this topic.

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Detect Flying Height
« on: 24 Sep 2008, 12:23:40 »
Hi, i've got a repeating trigger i want to activate when ever the chopper i am flying gets above say 100 metres.

Wot code should i be putting into the trigger condition?

Code: [Select]
? (getPos this select 2 < 40) and (getPos this select 2 > 25):trigger1=truei found this bit of code doing a search but i'm getting an invalid expression error

i had been thinking about someyhing like
Code: [Select]
?(Player flyInHeight >100)But i knew this wouldn't work before i even tested it  ???

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Detect Flying Height
« Reply #1 on: 24 Sep 2008, 12:45:09 »
Name your chopper something, say, chop1. Now make a trigger with this condition:

Condition: (getPos chop1 select 2) > 100
On Activation: hint "Your chopper is over 100 meters in the air!!";

And that's that. :)

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Re: Detect Flying Height
« Reply #2 on: 24 Sep 2008, 14:27:41 »
Cheers Wulfrug, i'll give it a try tomorra when i get home  :good: