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

◆ _SetEntityShortcut()

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

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

210 {
211 //TODO Check, if is in inventory
212 //if(entity.GetLoca)
213 if ( entity == NULL )
214 {
215 _RemoveEntity(index);
216 return;
217 }
218
219 int i = FindEntityIndex(entity);
220
221 if ( i != -1 )
222 _RemoveEntity(i);
223
224 _RemoveEntity(index);
225 _SetEntity( entity, index, force);
226 }
void _RemoveEntity(int index)
Определения QuickBarBase.c:242
void _SetEntity(EntityAI entity, int index, bool force=false)
Определения QuickBarBase.c:256
int FindEntityIndex(EntityAI entity)
Определения QuickBarBase.c:95

Перекрестные ссылки _RemoveEntity(), _SetEntity() и FindEntityIndex().

Используется в OnSetEntityNoSync(), OnSetEntityRequest(), OnSetEntityRPC() и SetEntityShortcut().