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

DEPRECATED. Подробнее...

+ Граф наследования:ActionPickupChicken:

Закрытые члены

void ActionPickupChicken ()
 
override GetInputType ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 

Подробное описание

DEPRECATED.

Конструктор(ы)

◆ ActionPickupChicken()

void ActionPickupChicken ( )
inlineprivate
5 {
6 m_Text = "#take";
7 }
string m_Text
Definition ActionBase.c:58

Перекрестные ссылки ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
21 {
22 if ( player.GetCommand_Vehicle() )
23 return false;
24
26 if ( Class.CastTo( chicken, target.GetObject() ) )
27 {
28 return !chicken.IsAlive();
29 }
30 return false;
31 }
Definition AnimalBase.c:280
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition EntityAI.c:95
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
15 {
18 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTNone.c:2

Перекрестные ссылки ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ GetInputType()

override GetInputType ( )
inlineprivate
10 {
12 }
Definition ActionInput.c:522

◆ OnExecuteServer()

override void OnExecuteServer ( ActionData action_data)
inlineprivate
34 {
35 // We will switch the item
37 if ( targetChicken )
38 {
39 DeadChicken_ColorBase deadChicken = DeadChicken_ColorBase.Cast( action_data.m_Player.GetHumanInventory().CreateInHands( targetChicken.GetDeadItemName() ) );
40
41 if ( deadChicken == null )
42 {
43 deadChicken = DeadChicken_ColorBase.Cast( action_data.m_Player.GetHumanInventory().CreateInInventory( targetChicken.GetDeadItemName() ) );
44
45 if ( deadChicken == null )
46 deadChicken = DeadChicken_ColorBase.Cast( GetGame().CreateObjectEx( targetChicken.GetDeadItemName(), targetChicken.GetPosition(), ECE_PLACE_ON_SURFACE, RF_ORIGINAL ) );
47 }
48 targetChicken.Delete();
49 }
50 }
const int RF_ORIGINAL
Definition CentralEconomy.c:63
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
proto native CGame GetGame()

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame() и RF_ORIGINAL.


Объявления и описания членов класса находятся в файле: