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.
-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
The entity action can use the connection variable to decide whether it's running on the client or on the server, and behave accordingly.
dplay_localfunction = 2;
level_load("mylevel.wmb"); // starts entity actions even on a client
connection, proc_local, proc_client