Jump to content
Sign in to follow this  
boriz

Hint "message" when any player enters the vehicle (multiplayer scripting)

Recommended Posts

Hello!

I am working on my own multiplayer mission for Arma 2 and I have some troubles with game synchronization. For instance, I have this code which checks if a player is in a vehicle:

if ( player in myCar ) then 
{ hint "Player is in a vehicle!";
};

The message is shown only for the player which enters the vehicle myCar. What I want to do is to show that message to all players when any of them enters myCar. How would I do this?

I was thinking about creating an array of active player names and check if any of those belong to the unit which is inside of the vehicle. I am not sure if this approach would be ideal so I am asking for help here.

Edit: This script runs on all clients and server.

Edited by Boriz
edit

Share this post


Link to post
Share on other sites

Thank you guys!

I'll see what I can do with this. I'll let you know if I run into any troubles.

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  

×