playerTargetLock: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 10: | Line 10: | ||
|s1= [[playerTargetLock]] | |s1= [[playerTargetLock]] | ||
|r1= [[Array]] with [target, lockValue, config] | |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 | ||
Latest revision as of 10:01, 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