DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ActionEatFruit.c
См. документацию.
8
10{
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_EAT;
15 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_EAT;
16 }
17
18 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
19 {
20 if (!super.ActionCondition(player, target, item))
21 return false;
22 Edible_Base food_item;
23
24 if ( Class.CastTo(food_item, item) )
25 {
26 if ( food_item.IsFruit() )
27 return true;
28 }
29
30 return false;
31 }
32}
int m_CommandUIDProne
Определения ActionBase.c:32
int m_CommandUID
Определения ActionBase.c:31
class ActionTargets ActionTarget
ActionData m_ActionData
Определения AnimatedActionBase.c:3
void ActionEatBig()
Определения ActionEat.c:11
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionEatFruit.c:18
void ActionEatFruit()
Определения ActionEatFruit.c:11
override void CreateActionComponent()
Определения ActionEatFruit.c:3
Определения ActionEatFruit.c:2
Super root of all classes in Enforce script.
Определения EnScript.c:11
override bool IsFruit()
Определения Edible_Base.c:377
Определения Edible_Base.c:2
Определения InventoryItem.c:731
Определения PlayerBaseClient.c:2
const float EAT_NORMAL
Определения ActionConstants.c:8
const float DEFAULT
Определения ActionConstants.c:29
Определения ActionConstants.c:28
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.