GSC reference › Built-in
AimAtEntityIK()
Built-in (engine)
Server
Called on: actor
Set this actor to aim at the specified entity. Call this function without any entity specified to turn it off.
Signature
<actor> AimAtEntityIK([otherguy])
Called on an entity: actor AimAtEntityIK(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| otherguy | Optional | the other guy to aim at |
Example (from Treyarch's docs)
guy AimAtEntityIK( otherguy )
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
- GetEntityNumber()Get the entity number of the entity
- PlayRumbleOnEntity()Plays a rumble on the given entity.
- ClearTargetEntity()Clears the current target for this vehicle or turret.
- MaySpawnEntity()
- IsEntity()Checks whether given variable is of type entity.
- ClearEntityTarget()Clears an AI's entity target.
- LookAtEntity()Set this actor to look at the specified entity.
- SetEntityTarget()Set an entity as the AI's target.
- SetTargetEntity()Sets the target of this turret
- Objective_OnEntity()Sets the objective to get its position from an entity.
- PlayRumbleLoopOnEntity()Plays a looping rumble on the given entity.
- MaySpawnFakeEntity()
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).