DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ LockModifier()

void LockModifier ( int id,
bool state )
protected

См. определение в файле HudDebugWinCharModifiers.c строка 409

410 {
411 //Disable update on server (PluginDeveloperSync)
412 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
413
414 //if client, send RPC
415 if ( GetGame().IsClient() )
416 {
417 ref Param2<int, bool> params = new Param2<int, bool>( id, state );
418 if ( player )
419 {
420 player.RPCSingleParam( ERPCs.DEV_RPC_MODS_LOCK, params, true );
421 }
422 }
423 //else set directly
424 else
425 {
426 m_PluginDeveloperSync.LockModifier( id, state );
427 }
428 }
ERPCs
Определения ERPCs.c:2
PluginDeveloperSync m_PluginDeveloperSync
Определения HudDebugWinCharModifiers.c:28
PlayerBase GetPlayer()
Определения ModifierBase.c:51
Определения PPEConstants.c:68
Определения PlayerBaseClient.c:2
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPlayer() и m_PluginDeveloperSync.

Используется в OnClick().