The unique identification number of the client who has created this entity; also serves as the
VIEW* pointer for a layered entity.
- On a server, this variable is automatically set on all entites created by a client.
- On a client,
this variable is set to a negative value until the server confirmed the creation of a global entity and the handle becomes valid. Then client_id is set to dplay_id.
- On view entities, this variable can be set to a view pointer
for using the aspect, arc,
parameters from this view. Otherwise the camera parameters are used.
- On sky entities, this variable can be set to a view pointer when the sky must only be visible in this view. Otherwise it's visible in all views.
- In all other cases, client_id is 0.
// wait on a client until a just-created entity becomes valid
while(my.client_id != dplay_id) wait(1);
// send a variable from a server to the client that cretated the my entity
// change the view of a view entity
viewent.client_id = camera;
, send_string_id, send_data_id, ent_createlayer