DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionAttachOnTentProxy.c
Go to the documentation of this file.
2{
4
5 override void CreateConditionComponents()
6 {
9 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ATTACHITEM;
10 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
11 }
12
13 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
14 {
15 TentBase tent = TentBase.Cast(target.GetParent());
16 if ( !tent )
17 return false;
18
19 return super.ActionCondition(player,target,item);
20 }
21}
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
protected int m_StanceMask
Definition ActionBase.c:53
class ActionTargets ActionTarget
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602