playerTargetLock: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ") |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 10: | Line 10: | ||
|s1= [[playerTargetLock]] | |s1= [[playerTargetLock]] | ||
|r1= [[Array]] | |r1= [[Array]] with [target, lockValue, config]: | ||
* target: [[Object]] - the locked object | * target: [[Object]] - the locked object | ||
* lockValue: [[Number]] - in range 0..1 where 1 is fully locked | * lockValue: [[Number]] - in range 0..1 where 1 is fully locked | ||
Revision as of 09:51, 2 January 2026
Description
- Description:
- Get the local player's current locked target (with weapons that can lock on).
- Groups:
- Object Manipulation
Syntax
- Syntax:
- playerTargetLock
- Return Value:
- Array with [target, lockValue, config]:
Examples
- Example 1:
- Example 2:
- playerTargetLock; // returns [objNull, 0, configNull] if no lock is being done
Additional Information
- See also:
- cursorTarget
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note