Signature
GetTargetLockEntity(<localclientnum>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localclientnum | Required | localclientnum |
Example (from Treyarch's docs)
target = self GetTargetLockEntity(<localclientnum>)
Real uses in BO3's scripts
Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.
Related built-ins
- GetTargetLockEntityArray()Get locked target
- ClearTargetEntity()Clears the current target for this vehicle or turret.
- ClearEntityTarget()Clears an AI's entity target.
- SetEntityTarget()Set an entity as the AI's target.
- SetTargetEntity()Sets the target of this turret
- WeaponLockTargetTooClose()When set true, the player will be unable to fire their lockon weapon, and will recieve a hint print telling them that they are too close.
- SetTargetedEntityEndTime()Set targeted entity end time, for use on the client side in the UI.
- GetTargetEntity()Gets the target entity of this turret or vehicle weapon
- SetWeaponFriendlyTargetLocked()Set the weapon lockon completion percentage
- Target_ClearReticleLockOn()Cancels any lock-on sequence on the hud.
- Target_StartReticleLockOn()Begins the lock-on sequence for the target on the hud.
- GetEntityNumber()Get the entity number of the entity
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).