Page MenuHomeFeedback Tracker

New command: CursorTargetDistance
New, WishlistPublic

Description

This sounds weird but there is no (easy) mean to obtain the same distance as when you point with a rangeFinder.

I tried to obtain any distance with:
_cursor_distance = if (isnull cursorTarget) then [{player distance (positionCameraToWorld [0,0,player distance screenToWorld [0.5,0.5]])},{player distance cursorTarget}];

But this method fails in lot of cases because cursortarget returns the bounding center of the object and we need the point of "contact" (aimed point). On the other hand, without cursortarget, distance with screenToWorld command can't see objects and returns ground.

So, i never found a way to pick up distances like in a rangefinder. Big houses, wall will return one global distance instead of acctual aiming point(s) distance(s).

Details

Legacy ID
2605592242
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request
Steps To Reproduce

spawn something like:

0 = [] spawn {while {true} do {sleep 0.1; _cursor_distance = player distance (positionCameraToWorld [0,0,player distance screenToWorld [0.5,0.5]]); hint format ["%1",_cursor_distance]}}

while using the rangefinder and scout everywhere.

Additional Information

I precise that rangefinder can see every object, without exception! when cursortarget can return sometimes <null-object> for embedded map objects like a monument or a statue. But it's another problem.

Event Timeline

PiepMGI edited Steps To Reproduce. (Show Details)Oct 14 2015, 11:56 PM
PiepMGI edited Additional Information. (Show Details)
PiepMGI set Category to Feature Request.
PiepMGI set Reproducibility to Always.
PiepMGI set Severity to None.
PiepMGI set Resolution to Open.
PiepMGI set Legacy ID to 2605592242.May 8 2016, 12:57 PM