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

Private Member Functions

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

Detailed Description

Definition at line 2 of file ActionUnfoldEntity.c.

Constructor & Destructor Documentation

◆ ActionUnfoldEntity()

void ActionUnfoldEntity::ActionUnfoldEntity ( )
inlineprivate

Definition at line 4 of file ActionUnfoldEntity.c.

5 {
6 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_HANDS;
7 }
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 17 of file ActionUnfoldEntity.c.

18 {
19 if (item)
20 return true;
21 return false;
22 }

◆ ActionConditionContinue()

override bool ActionUnfoldEntity::ActionConditionContinue ( ActionData action_data)
inlineprivate

Definition at line 24 of file ActionUnfoldEntity.c.

24{ return true; }

◆ CreateConditionComponents()

override void ActionUnfoldEntity::CreateConditionComponents ( )
inlineprivate

Definition at line 9 of file ActionUnfoldEntity.c.

10 {
13 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool ActionUnfoldEntity::HasTarget ( )
inlineprivate

Definition at line 15 of file ActionUnfoldEntity.c.

15{ return false; }

◆ OnExecuteClient()

override void ActionUnfoldEntity::OnExecuteClient ( ActionData action_data)
inlineprivate

Definition at line 26 of file ActionUnfoldEntity.c.

27 {
29 }
void ClearInventoryReservationEx(ActionData action_data)
Definition ActionBase.c:790

References ClearInventoryReservationEx().

◆ OnExecuteServer()

override void ActionUnfoldEntity::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 31 of file ActionUnfoldEntity.c.

32 {
33 if (!GetGame().IsMultiplayer())
35
36 ItemBase old_item = action_data.m_MainItem;
37 if (old_item.ConfigIsExisting("ChangeIntoOnDetach"))
38 {
39 string str = old_item.ChangeIntoOnDetach();
40 if (str != "")
41 {
43 lambda.SetTransferParams(true, true, true, false, 1);
44 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
45 }
46 }
47 }
proto native CGame GetGame()

References ClearInventoryReservationEx(), and GetGame().


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