AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkNetworkClient.UserData Property

Up to 5 local values for the client that can be used to keep track of items that belong to this client.

Syntax
Pascal
property UserData [const Index: Integer]: Integer;
Parameters 
Description 
Index 
the value index (0-4) 

For example if you create a sprite to represent the client in your game you could assign the sprite ID (or object) to one of these data slots so that when you go through the client list you can detect which sprite you used for each client. This also allows you to clean up the sprite if the client is found to have disconnected. 

This value is entirely local and does not get transferred across the network.

Copyright (c) 2012. All rights reserved.