14 if (!target || !player)
17 Object targetObject = target.GetObject();
19 targetObject = target.GetParent();
26 if (targetObject.IsInherited(allowedType))
28 vector cursorHitPos = target.GetCursorHitPos();
32 return fromPlayerRoot || fromPlayerHead;
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
ref array< typename > m_AllowedTypes
override bool Can(PlayerBase player, ActionTarget target)
void CCTCursorInherited(notnull array< typename > allowedTypes, float maximal_target_distance=UAMaxDistances.DEFAULT)
float m_MaximalActionDistanceSq
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.