|
mplay_player_id(numb) |
|
numb = is the target placer you want to retrieve it’s unique id.
Example
Like the mplay_player_name() this retrieves more info about the player, now its id. The ID is a real that can be stored in a variable, also, you wonder why you want this id, well, when the games communicate each other to keep synchronized there’s a way to send data called messages, these messages can be sent to all players at once or to one specific one, for this you need to provide the ID.
You will learn the utility of this when learning synchronizing, for now just keep inside your mind what you learn, after reading all the multiplayer functions I suggest reading Mark’s multiplayer tutorial at www.gamemaker.nl instead of asking in the GMC ;)
gml_josea – Revision #1 |