cursorObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Removed note) |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on March ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-03-$1") |
||
(37 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
|arma3| | |game1= arma3 | ||
|version1= 1.56 | |||
| | |gr1= Object Detection | ||
| | |descr= 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. | ||
| | |s1= '''cursorObject''' | ||
| | |r1= [[Object]] | ||
| [ | |x1= <sqf>hint str [getModelInfo cursorObject, typeOf cursorObject];</sqf> | ||
|seealso= [[getCursorObjectParams]] [[cursorTarget]] [[lineIntersects]] [[lineIntersectsWith]] [[lineIntersectsObjs]] [[lineIntersectsSurfaces]] [[intersect]] [[checkVisibility]] | |||
| | |||
}} | }} | ||
<dl class="command_description"> | |||
<dl class= | |||
<dd class="notedate">Posted on | <dt><dt> | ||
<dt class="note">[[User:Pierre MGI|Pierre MGI]] | <dd class="notedate">Posted on 2015-03-23 - 18:17 (UTC)</dd> | ||
<dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt> | |||
<dd class="note"> | <dd class="note"> | ||
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). | 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). | ||
</dl> | </dl> | ||
Latest revision as of 23:06, 13 May 2023
Description
- Description:
- 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.
- Groups:
- Object Detection
Syntax
- Syntax:
- cursorObject
- Return Value:
- Object
Examples
- Example 1:
Additional Information
- See also:
- getCursorObjectParams cursorTarget lineIntersects lineIntersectsWith lineIntersectsObjs lineIntersectsSurfaces intersect checkVisibility
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on 2015-03-23 - 18:17 (UTC)
- 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).