dplay_localfunction

Start level entity actions even on a client. Can be used for local entity functions without the need to send the function by proc_local or proc_client.

Type:

var

Range:

-1 - Don't run any actions of entities placed in the level on server, client, or in single player mode. A7.77
0
 - Run entity actions on the server only (default).
1  - Run actions of entities placed in the level both on server and clients.
2  - Run actions of all entities - placed as well as created - both on server and clients. A7.7

Remarks:

The entity action can use the connection variable to decide whether it's running on the client or on the server, and behave accordingly.

Example:

dplay_localfunction = 2;
level_load("mylevel.wmb"); // starts entity actions even on a client

See also:

connection, proc_local, proc_client

► latest version online