cursorObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|arma3 | |arma3 | ||
|1.56 | |1.56 | ||
|gr1= Object Detection | |gr1= Object Detection | ||
| 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. | | 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''' | | '''cursorObject''' | ||
| [[Object]] | | [[Object]] | ||
|x1= <code>[[hint]] [[str]] [<nowiki/>[[getModelInfo]] [[cursorObject]], [[typeOf]] [[cursorObject]]];</code> | |x1= <code>[[hint]] [[str]] [<nowiki/>[[getModelInfo]] [[cursorObject]], [[typeOf]] [[cursorObject]]];</code> | ||
| [[getCursorObjectParams]], [[cursorTarget]], [[lineIntersects]], [[lineIntersectsWith]], [[lineIntersectsObjs]], [[lineIntersectsSurfaces]], [[intersect]], [[checkVisibility]] | | [[getCursorObjectParams]], [[cursorTarget]], [[lineIntersects]], [[lineIntersectsWith]], [[lineIntersectsObjs]], [[lineIntersectsSurfaces]], [[intersect]], [[checkVisibility]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:28, 18 January 2021
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:
hint str [getModelInfo cursorObject, typeOf cursorObject];
Additional Information
- See also:
- getCursorObjectParamscursorTargetlineIntersectslineIntersectsWithlineIntersectsObjslineIntersectsSurfacesintersectcheckVisibility
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
Notes
- Posted on March 23, 2015 - 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).