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

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

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

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

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

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

DEPRECATED.

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

◆ ActionInsertSparkplug()

void ActionInsertSparkplug ( )
inlineprivate
10 {
11 }

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
21 {
22 EntityAI target_EAI = EntityAI.Cast( target.GetObject() );
23 string selection = target_EAI.GetActionComponentName(target.GetComponentIndex());
24
25 if ( selection == "sparkplug" && target_EAI.GetInventory().CanAddAttachment(item) )
26 {
27 return true;
28 }
29
30 return false;
31 }
Definition Building.c:6
Definition EntityAI.c:95

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
14 {
17 m_Text = "#attach";
18 }
string m_Text
Definition ActionBase.c:58
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTNonRuined.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT, ActionBase::m_ConditionItem, ActionBase::m_ConditionTarget и ActionBase::m_Text.

◆ OnExecuteClient()

override void OnExecuteClient ( ActionData action_data)
inlineprivate
39 {
40 EntityAI target_EAI = EntityAI.Cast( action_data.m_Target.GetObject() ); // cast to ItemBase
41 target_EAI.LocalTakeEntityAsAttachment (action_data.m_MainItem);
42 }

◆ OnExecuteServer()

override void OnExecuteServer ( ActionData action_data)
inlineprivate
34 {
35 EntityAI target_EAI = EntityAI.Cast( action_data.m_Target.GetObject() ); // cast to ItemBase
36 target_EAI.LocalTakeEntityAsAttachment (action_data.m_MainItem);
37 }

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