proc_local(entity,function)
proc_client(entity,function)

Assigns a client-side function to the given entity. Proc_local starts the given function on all clients, proc_client starts the function only on the client which has created the given entity or it's creator entity. Client-side entity functions can be used for detecting local mouse events, for starting local sound or particle effects, or for local entity animation. This can save a lot of bandwidth in a multiplayer system.

Parameters:

entity Entity to assign the function to.
function To be run on the clients.

Remarks:

Example:

// the following function sets the MY entity invisible only on the     client who has created it. 		
function hide_me() { my.invisible = on; }
...
wait(1);
proc_client(my, hide_me);
...

See also:

connection, dplay_localfunction