OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Carroll on 21 Apr 2008, 10:29:47

Title: (SOLVED) Detecting when helo has landed
Post by: Carroll on 21 Apr 2008, 10:29:47
Hi, is there a way to detect whether my chopper has landed?

I am making a medivac mission where i have to board a chopper, then go an pick up some injured soldiers. However i must stay in the pilots seat. I just need to detect when i have touched down at the pickup so i can trigger the cut scene that will show the field medics & casualties boarding the chopper.

* i can make a trigger activate if i disembark & walk around using condition:
Code: [Select]
this && "Land" countType thisList > 0;
however i dont wanna disembark so is there another way to detect if just the chopper has touched down in the trigger area?
Title: Re: Detecting when helo has landed
Post by: Loyalguard on 21 Apr 2008, 11:33:56
Try this (untested):

1. Give your chopper a name: (e.g. med1)
2. Use the following trigger condition:

Code: [Select]
med1 in ThisList && ((getPos med1 select 2) < 1)
You may need to tweak the height.
Title: (SOLVED) Detecting when helo has landed
Post by: Carroll on 21 Apr 2008, 12:02:43
Works great thankyou very much for you prompt help :good:
Title: Re: (SOLVED) Detecting when helo has landed
Post by: schuler on 21 Apr 2008, 12:48:29
Carroll   :welcome: to the forums !!!!!
nice clan flag!
cheers Schuler
Title: Re: (SOLVED) Detecting when helo has landed
Post by: Rommel92 on 21 Apr 2008, 13:40:12
Hi-ho Cheerio, welcome to the forums oh'
Nice to see another Aussie here (excl. schuler and one or two others), its a bit lonely at times!

 :clap: