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

◆ SetEntityShortcut()

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

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

147 {
148 //Client
149 if (g_Game.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 (g_Game.IsMultiplayer() && g_Game.IsServer())
165 {
167 }
168 else
169 {
170 // Single player
171 _SetEntityShortcut(entity,index,force);
172 }
173 }
const int INPUT_UDT_QUICKABARSHORTCUT
DayZGame g_Game
Определения DayZGame.c:3942
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)

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