Jump to content
Sign in to follow this  
Flat4ej20

How do I adjust trigger hieght

Recommended Posts

Only info I found was for OFP editor, but does not work. I have the trigger set to end the game when chopper1 flys over it, but want the trigger to activate only when copper1 has landed on this trigger. I have Helicopter pad named H1 in same location as this trigger. Condition this and ((getPos chopper1) select 0 - (getPos H1) select 0) > 0

Share this post


Link to post
Share on other sites

you dont need "this" in the condition if you're specifying a condition.

it should be:

( (getPos chopper1 select 2) - (getPos H1 select 2) ) < 5;

"2" after getPos returns the height. You have it returning the x-coordinate, so it could be a mile up and still activate that trigger. I just put 5 in there because even if it's landed idk if that'll count as "0" elevation.

_______________________

Then again... easiest way to do thing whole thing...

Place a trigger on the helipad, and in condition just put:

(!isEngineOn chopper1)

That will be "true" when the engine is turned off. :)

Share this post


Link to post
Share on other sites

JDog, thanks for your help. I can now set trigger hieght, ie "1" elevation, "2" elevation. But when i try "0" elevation the games ends as soon as it starts. I have Axis a 0 & Axis b 0. Chopper1 is now were near trigger when game starts. "1" elevation is good enogh for me. Wish I can help others, but still new to bis editor.

Share this post


Link to post
Share on other sites

You have both axes of the trigger set to 0? That would be awfully hard if not impossible to trigger I would imagine... never tried it.

Then again I'm not entirely understanding the problem now.

Share this post


Link to post
Share on other sites
JDog, thanks for your help. I can now set trigger hieght, ie "1" elevation, "2" elevation. But when i try "0" elevation the games ends as soon as it starts. I have Axis a 0 & Axis b 0. Chopper1 is now were near trigger when game starts. "1" elevation is good enogh for me. Wish I can help others, but still new to bis editor.

You don't want the axi to be 0. That means it can't fly through it because there is no physical space. At least thats how I think it works.

Share this post


Link to post
Share on other sites

ok, i got it to work with (!isEngineOn copper1). But this map was going to be a pvp were each team retrives there sollen choppers and returns them to there base. So, if somebody turns off chopper1 engine than that triger ends game ?

Share this post


Link to post
Share on other sites

Give the trigger an X and Y axis, group it to the vehicle (chopper) and choose 'vehicle' and 'present'. The this command will refer to the chopper being inside the trigger's radius.

Then, in the condition code you could use:

this && (!isEngineOn chopper1)

Which will mean the condition is only met once the chopper is inside the radius AND the engine is turned off.

Share this post


Link to post
Share on other sites

Jakerod, I set Axis a & Axis b to 20, but game still ends as soon as it starts. I,ll keep trying untill I can get chopper1 to land on trigger without game ending as soon as it starts. I have the trigger set to ( (getPos chopper1 select 0) - (getPost H1 select 0) ) < 0; Axis a & Axis b 20. With this trigger the game ends as soon as it starts.

---------- Post added at 11:22 PM ---------- Previous post was at 10:48 PM ----------

Got it to work with everyone's help here. TKS. Trigger Activation BLUFOR. Condition this && (!isEngineON chopper1) I can now fly a chopper pretty damn good after all the trigger / chopper testing LoL.

Share this post


Link to post
Share on other sites

Haha, you learned something and became a better pilot. Gratz2u.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×