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

◆ SetEntityShortcut()

void SetEntityShortcut ( EntityAI entity,
int index,
bool force = false )
protected

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

147 {
148 //Client
149 if (GetGame().IsClient())
150 {
152 {
155 ctx.Write(entity);
156 ctx.Write(index);
157 ctx.Write(force);
158 ctx.Send();
159
160 _SetEntityShortcut(entity, index, force);
161 }
162 }
163 //Server
164 else if (GetGame().IsMultiplayer() && GetGame().IsServer())
165 {
167 }
168 else
169 {
170 // Single player
171 _SetEntityShortcut(entity,index,force);
172 }
173 }
const int INPUT_UDT_QUICKABARSHORTCUT
Определения _constants.c:5
PlayerBase _player
Определения QuickBarBase.c:18
void _SetEntityShortcut(EntityAI entity, int index, bool force=false)
Определения QuickBarBase.c:209
static void SendQuickbarSetShortcut(DayZPlayer pPlayer, EntityAI item, int index, bool force=false)
Определения DayZPlayerSyncJunctures.c:325
proto native void Send()
proto static native bool CanStoreInputUserData()
Returns true when the channel is free, AND the InputBuffer is NOT full (same as '!...
Определения gameplay.c:121
proto bool Write(void value_out)
proto native CGame GetGame()

Перекрестные ссылки _player, _SetEntityShortcut(), ScriptInputUserData::CanStoreInputUserData(), GetGame(), INPUT_UDT_QUICKABARSHORTCUT, ScriptInputUserData::Send(), DayZPlayerSyncJunctures::SendQuickbarSetShortcut() и Serializer::Write().