GSC reference › Built-in

SetTargetOrigin()

Built-in (engine) Server Called on: turret_or_vehicle

Sets the target origin of this turret or vehicle weapon

Signature

<turret_or_vehicle> SetTargetOrigin(<origin>)

Called on an entity: turret_or_vehicle SetTargetOrigin(...)

Parameters

NameRequired?Details
originRequired the turret target origin

Example (from Treyarch's docs)

roof_turret SetTargetOrigin( origin )

Real uses in BO3's scripts

Called 8 times in the decompiled scripts. A few, zombies first:

Related built-ins

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).