Pierre MGI
If you point at the primary weapon of an infantry unit, cursorObject will return the p3d of the weapon instead of the unit itself (B Alpha 1-2:1.. or its variable name ). That doesn't occur for anything else (backpack or headgear).
Results appear below as you type; use the arrow keys to move through them.
Returns the object under cursor. This command is quite different from cursorTarget as it is more precise in determining the boundaries of the pointed at object and can detect a larger variety of objects including map objects and trees.
cursorObject
Returns: Object
hint str [getModelInfo cursorObject, typeOf cursorObject];
getCursorObjectParams · cursorTarget · lineIntersects · lineIntersectsWith · lineIntersectsObjs · lineIntersectsSurfaces · intersect · checkVisibility
If you point at the primary weapon of an infantry unit, cursorObject will return the p3d of the weapon instead of the unit itself (B Alpha 1-2:1.. or its variable name ). That doesn't occur for anything else (backpack or headgear).