Jump to content
  • 0

Remote Execution: playing a sound in another client


Donnovan

Question

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!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...