Jump to content
Sign in to follow this  
Yolo Joe

Activate trigger when the player is on the ground

Recommended Posts

I want a helicopter to be repaired and re-armed when it lands inside a trigger. It has to work with MP.

I already have the re-arming and repairing working.

How can it be done?

Thanks in advance!

Share this post


Link to post
Share on other sites

 vehicle player isTouchingGround; 

You are welcome :)

Share this post


Link to post
Share on other sites

Where do I put the code? It does not want to go in the trigger OnAct. Wants me to put ";" after "player"

Share this post


Link to post
Share on other sites
{_x iskindof "land" and side _x == WEST} count thislist > 0;

Use this.

Share this post


Link to post
Share on other sites
Use this.

Are you kidding me? That script returns the amount of BLUFOR units..... has nothing to do with that the OP wants????

@chillroy:

You should put the code I gave you in the trigger condition :) Sorry for the confusion.

Share this post


Link to post
Share on other sites

Nooooo.. It's not working. If I use the code you gave me, it wants me to return ";" before isTouchingGround. I tried "isTouchingGround player", but then the trigger area dont work. it activates once i land with myt parachute.

---------- Post added at 10:45 ---------- Previous post was at 10:42 ----------

And it has to work with multiple players and vehicles. But just the once who are inside the trigger area and is touching the ground.

Share this post


Link to post
Share on other sites
Nooooo.. It's not working. If I use the code you gave me, it wants me to return ";" before isTouchingGround. I tried "isTouchingGround player", but then the trigger area dont work. it activates once i land with myt parachute.

---------- Post added at 10:45 ---------- Previous post was at 10:42 ----------

And it has to work with multiple players and vehicles. But just the once who are inside the trigger area and is touching the ground.

isTouchingGround vehicle player && player in thislist

Place this into trigger activation

Share this post


Link to post
Share on other sites
isTouchingGround vehicle player && player in thislist

Place this into trigger activation

Placing it it Trigger Activation makes no sence and didn't work, so I put it in the trigger condition. It works, but I have to exit the vehicle for it to work.

I want a helicopter to be repaired and re-armed when it lands inside a trigger. It has to work with MP.

When I land with the helicopter on the helipad, it shoud rearm, repair and refuel. Now I have to exit the vehicle for the heli to repair...

Share this post


Link to post
Share on other sites

condition:

(getposATL Helo select 2) < 1.1

when its 1 metres off the ground the condition will become true

then remove the fuel so it cant fly off

then run your repair sequence

then add the fuel

call the script from the trigger

Share this post


Link to post
Share on other sites

But is is multiplayer compatible? And does it work with multiple vehicles? :P

Can't i just replace "Helo" with "vehicle"?

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  

×