cursorTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(cursorTarget also works for locking infantry launchers)
m (Text replace - "</dt>" to "")
Line 35: Line 35:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dt class="note">'''[[GLT Myke]]''' 01:25, 18 February 2011 (CET)</dt>
<dt class="note">'''[[GLT Myke]]''' 01:25, 18 February 2011 (CET)
<dd class="note">
<dd class="note">
If the player is in a vehicle and a lockable weapon is selected and a target is locked, the locked target will be returned, regardless if it's in sight or not.
If the player is in a vehicle and a lockable weapon is selected and a target is locked, the locked target will be returned, regardless if it's in sight or not.
</dd>
</dd>


<dt class="note">'''[[User:kju|kju]]''' 11 March 2011</dt>
<dt class="note">'''[[User:kju|kju]]''' 11 March 2011
<dd class="note">
<dd class="note">
Addition to Myke's note:
Addition to Myke's note:
Line 47: Line 47:
</dd>
</dd>


<dt class="note">'''[[User:Lou Montana|Lou Montana]]''' 13:09, 11 July 2009 (CEST)</dt>
<dt class="note">'''[[User:Lou Montana|Lou Montana]]''' 13:09, 11 July 2009 (CEST)
<dd class="note">
<dd class="note">
*Player must [[knowsAbout|knows about]] what he is pointing to for this command to return something other than <NULL-OBJECT>
*Player must [[knowsAbout|knows about]] what he is pointing to for this command to return something other than <NULL-OBJECT>

Revision as of 14:28, 21 October 2011

Hover & click on the images for description

Description

Description:
This is the entity pointed to by a players cursor.
Groups:
Uncategorised

Syntax

Syntax:
cursorTarget
Return Value:
Object

Examples

Example 1:
alive cursorTarget

Additional Information

See also:
laserTargetnearTargetsknowsAbout

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

GLT Myke 01:25, 18 February 2011 (CET)
If the player is in a vehicle and a lockable weapon is selected and a target is locked, the locked target will be returned, regardless if it's in sight or not.
kju 11 March 2011
Addition to Myke's note: It also works for infantry with launchers that canLock, like Javelin or AA. Only the lock cursor must be visible on the target - not a full lock necessarily.
Lou Montana 13:09, 11 July 2009 (CEST)
  • Player must knows about what he is pointing to for this command to return something other than <NULL-OBJECT>
  • This command doesn't work through building windows
  • This recognition doesn't work with every object : soldiers, vehicles, big houses are ok, but not trees, plants, road signs or others little things

Bottom Section