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

Private Member Functions

override bool IsInventoryVisible ()
 
override bool CanBeActionTarget ()
 
override void EEParentedTo (EntityAI parent)
 
override void EEParentedFrom (EntityAI parent)
 
- Private Member Functions inherited from Ammunition_Base
float GetWeightSpecialized (bool forceRecalc=false)
 
override void SetQuantityToMinimum ()
 
override void SetFromProjectile (ProjectileStoppedInfo info)
 

Detailed Description

Definition at line 88 of file AmmunitionPiles.c.

Member Function Documentation

◆ CanBeActionTarget()

override bool Bolt_Base::CanBeActionTarget ( )
inlineprivate

Definition at line 96 of file AmmunitionPiles.c.

97 {
98 if (super.CanBeActionTarget())
99 {
100 EntityAI parent = EntityAI.Cast(GetParent());
101 if (parent)
102 return !parent.IsManagingArrows();
103 }
104 return true;
105 }
proto native Widget GetParent()
Get parent of the Effect.
Definition Effect.c:389

References GetParent().

Referenced by IsInventoryVisible().

◆ EEParentedFrom()

override void Bolt_Base::EEParentedFrom ( EntityAI parent)
inlineprivate

Definition at line 117 of file AmmunitionPiles.c.

118 {
119 if (!parent)
120 return;
121
122 ArrowManagerBase arrowManager = parent.GetArrowManager();
123 if (arrowManager)
124 arrowManager.RemoveArrow(this);
125 }

◆ EEParentedTo()

override void Bolt_Base::EEParentedTo ( EntityAI parent)
inlineprivate

Definition at line 107 of file AmmunitionPiles.c.

108 {
109 if (!parent)
110 return;
111
112 ArrowManagerBase arrowManager = parent.GetArrowManager();
113 if (arrowManager)
114 arrowManager.AddArrow(this);
115 }

◆ IsInventoryVisible()

override bool Bolt_Base::IsInventoryVisible ( )
inlineprivate

omitted super call is intended

Definition at line 90 of file AmmunitionPiles.c.

91 {
93 return CanBeActionTarget();
94 }
override bool CanBeActionTarget()

References CanBeActionTarget().


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