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

◆ SetupAnimation()

void SetupAnimation ( ItemBase item)

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

302 {
303 if (item.IsDeployable())
304 {
305 if (item.IsHeavyBehaviour())
306 {
307 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_HEAVY;
308 }
309 else if (item.IsOneHandedBehaviour())
310 {
311 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_1HD;
312 }
313 else if (item.IsTwoHandedBehaviour())
314 {
315 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_2HD;
316 }
317 else
318 {
319 Debug.Log("Error: check " + item + " behaviour");
320 }
321 }
322 else
323 {
324 if (item.IsHeavyBehaviour())
325 {
326 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_HEAVY;
327 }
328 else if (item.IsOneHandedBehaviour())
329 {
330 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_1HD;
331 }
332 else if (item.IsTwoHandedBehaviour())
333 {
334 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_PLACING_2HD;
335 }
336 else
337 {
338 Debug.Log("Error: check " + item + " behaviour");
339 }
340 }
341 }
int m_CommandUID
Определения ActionBase.c:31
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Определения Debug.c:122
Определения Debug.c:2
override bool IsDeployable()
Определения BaseBuildingBase.c:341
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

Перекрестные ссылки ItemBase::IsDeployable(), Debug::Log() и m_CommandUID.

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