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

◆ SendRPC()

void ActionEmptyBottleBase::SendRPC ( ActionData actionData,
bool enable )
inlineprotected

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

88 {
89 if ( !GetGame().IsMultiplayer() || GetGame().IsServer() )
90 {
91 ActionEmptyBottleBaseCB comp = ActionEmptyBottleBaseCB.Cast(actionData.m_Callback);
92 if (comp.m_RPCStopAlreadySent)
93 return;
94
95 Bottle_Base target_vessel = Bottle_Base.Cast( actionData.m_MainItem );
96 Param1<bool> play = new Param1<bool>( enable );
97 GetGame().RPCSingleParam( target_vessel, SoundTypeBottle.EMPTYING, play, true );
98 if (!enable)
99 comp.m_RPCStopAlreadySent = true;
100 }
101 }
SoundTypeBottle
Определения Bottle_Base.c:2
void Bottle_Base()
Определения Bottle_Base.c:42
bool m_RPCStopAlreadySent
Определения ActionEmptyBottleBase.c:3
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native CGame GetGame()

Перекрестные ссылки ActionData, GetGame(), ActionEmptyBottleBaseCB::m_RPCStopAlreadySent и CGame::RPCSingleParam().