DayZ 1.24
Loading...
Searching...
No Matches
ActionForceDrink Class Reference
Inheritance diagram for ActionForceDrink:
[legend]
Collaboration diagram for ActionForceDrink:
[legend]

Private Member Functions

void ActionForceDrink ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 

Detailed Description

Definition at line 9 of file ActionForceDrink.c.

Constructor & Destructor Documentation

◆ ActionForceDrink()

void ActionForceDrink::ActionForceDrink ( )
inlineprivate

Definition at line 11 of file ActionForceDrink.c.

12 {
13 m_CallbackClass = ActionForceDrinkCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_Text = "#give_drink";
18 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References m_FullBody, m_StanceMask, and m_Text.

Member Function Documentation

◆ ActionCondition()

override bool ActionForceDrink::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 26 of file ActionForceDrink.c.

27 {
28 if (!super.ActionCondition(player, target, item))
29 return false;
30
31 PlayerBase target_player = PlayerBase.Cast(target.GetObject());
32
33 if (target_player)
34 return target_player.CanEatAndDrink();
35 else
36 return false;
37 }

◆ CreateConditionComponents()

override void ActionForceDrink::CreateConditionComponents ( )
inlineprivate

Definition at line 20 of file ActionForceDrink.c.

21 {
24 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCTMan.c:2
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.


The documentation for this class was generated from the following file: