408 {
409 if (player)
410 {
412 Param1<bool> personal_light_toggle = new Param1<bool>(is_personal_light);
414 }
415 else
416 {
417 Error(
"Error! Player was not initialized at the right time. Thus cannot send RPC command to enable or disable personal light!");
418 }
419 }
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native int ServerConfigGetInt(string name)
Server config parsing. Returns 0 if not found.
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.