Assuming you want to send the mission message to one player, you need to already have that player in a variable.
If you want to send it to every player you can just do this:
publicVariable "missionSoundPVC";
publicVariable on the clientside
"missionSoundPVC" addPublicVariableEventhandler {
playSound "alert";
missionSoundPVC = nil;
};
how you call it from the server
missionSoundPVC = true;
(owner (vehicle unit)) publicVariableClient "missionSoundPVC";
You could even get fancier and make it...
https://community.bistudio.com/wiki/setCombatMode
https://community.bistudio.com/wiki/setBehaviour
Make sure you have both of those set to your liking.
This might help you. It's how you can create your own custom ambient music, or remove the ambient music.
http://opendayz.net/threads/tutorial-custom-ambient-music-serverside.15208/
Unless you use a database trigger, or a 999 call, you can't really change the skin for a specific player, or "lock it" to their account. The only way you can try to do it otherwise is as I posted in this thread using the skin changing code, forcing it to run on that player everytime they login...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.