Hi
This code add a event handler to a vehicle, this event handler is trigered when someone enters the vehicle, and then a message is send to the entering player.
_vehicle addEventHandler ["GetIn",{ _nil = [nil,(_this select 2),"loc",rTITLETEXT,"Warning: This vehicle will disappear!","PLAIN DOWN",5] call RE; }];You can see it uses the RE (remote execution) function to send the message. A simple titleText "Warning: This vehicle will disappear!" would show the text on the player that generated the event handler, and not the player that entered the vehicle.
But now, i want not to play a message on the entering player screen, i want to play a sound.
Anyone can help on that?
Thankyou!