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

Protected Member Functions

void CCTObject (float maximal_target_distance=UAMaxDistances.DEFAULT)
 
override bool Can (PlayerBase player, ActionTarget target)
 

Protected Attributes

float m_MaximalActionDistanceSq
 

Detailed Description

Definition at line 1 of file CCTObject.c.

Constructor & Destructor Documentation

◆ CCTObject()

void CCTObject::CCTObject ( float maximal_target_distance = UAMaxDistances.DEFAULT)
inlineprotected

Member Function Documentation

◆ Can()

override bool CCTObject::Can ( PlayerBase player,
ActionTarget target )
inlineprotected

Definition at line 10 of file CCTObject.c.

11 {
12 Object targetObject = target.GetObject();
13 if (!targetObject || !player)
14 return false;
15
18
19 float distanceRoot = vector.DistanceSq(targetObject.GetPosition(), player.GetPosition());
21
23 }
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.

References vector::DistanceSq(), and m_MaximalActionDistanceSq.

Member Data Documentation

◆ m_MaximalActionDistanceSq

float CCTObject::m_MaximalActionDistanceSq
protected

Definition at line 3 of file CCTObject.c.

Referenced by Can(), and CCTObject().


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