Jump to content
Sign in to follow this  
unknownx9

Hint attached to a pilot?

Recommended Posts

Hello,

I have asked this question on another forum but no reply so far, so I decided to see if anyone can help here.

What I am trying to do is create a hint that activates when any unit gets into the pilot seat, and the hint will only display for the person sitting in the pilot seat, if it is not possible to create a hint for that person only then I dont mind for it to display so that everyone inside the vehicle can see it. Now if that is not possible as well, then maybe a vehicle chat message that activates when any unit gets into the pilot/driver seat of a vehicle.

Thank you for your time and contribution.

Share this post


Link to post
Share on other sites

VehicleChat will do what you ask, but I'm not sure how to trigger it on getting into the aircraft - maybe someone else can help you with that. If I find out, I'll let you know.

VehicleChat is called thus: MyHind VehicleChat "Welcome to the Hind";

Where MyHind is the name of the heli and, of course, the message can be whatever you like. I'm just having problems having it called globally so that EVERYONE can see it, but no help yet in my thread.

Share this post


Link to post
Share on other sites

Trigger

condition: driver yourWhateverVehicle == player

onact: hint "hi there"

Share this post


Link to post
Share on other sites

Ye, I think shk's approach is the most elegant one.

If you want this hint to popup when the player enters ANY vehicle's driver position, you can change the condition to

vehicle player != player && player == driver vehicle player

Furthermore you can restrict it to only Planes and Helicopters by

vehicle player isKindOf "Air" && driver vehicle player == player

Btw. as I experienced, it is always easier to let something happen only on a single client machine than on everyone's machine. Just think of the condition in a trigger is true either on a specific machine or on all machines at the same time.

Share this post


Link to post
Share on other sites

Cool, I thought VehicleChat would limit the chat scope to the vehicle - I wasn't sure if the Hint wouldn't go global or not.

Bon: just for reference, how WOULD I make it global for the hint and for vehiclechat?

Share this post


Link to post
Share on other sites
Cool, I thought VehicleChat would limit the chat scope to the vehicle - I wasn't sure if the Hint wouldn't go global or not.

Bon: just for reference, how WOULD I make it global for the hint and for vehiclechat?

I think the easiest way to make something happen globally is to use setVehicleInit.

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  

×