18 {
19 if ( !
target )
return false;
20
24
26 {
28
32 {
35 {
41 if ( (
diff[0] < 0 ) && (
diff[2] < 0 ) )
43 else if ( (
diff[0] < 0 ) && (
diff[2] > 0 ) )
45
46
47 }
48
51 {
55 return true;
56 }
57 }
58 }
59
60 return false;
61 }
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
Definition ActionBase.c:1054
Definition BuildingWithFireplace.c:2
Definition ObjectTyped.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108
Definition EnConvert.c:106
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
static float Dot(vector v1, vector v2)
Returns Dot product of vector v1 and vector v2.
Definition EnConvert.c:271
static proto float Acos(float c)
Returns angle in radians from cosinus.
static const float RAD2DEG
Definition EnMath.c:16