GSC reference › Built-in
CarryTurret()
Built-in (engine)
Server
Player Called on: player
Links the auto turret to the player to carry around.
Signature
<player> CarryTurret(<turret>, <offset>, <angleOffset>)
Called on an entity: player CarryTurret(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| turret | Required | The turret entity |
| offset | Required | the offset from the player to place the turret |
| angleOffset | Required | the angle offset of the turret |
Example (from Treyarch's docs)
player CarryTurret( turret, offset, angleOffset )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/mp/killstreaks/_placeables.gsc, line 129
player carryturret(placeable, vectorscale((1, 0, 0), 40), (0, 0, 0));
Related built-ins
- IsCarryingTurret()Check if player is carrying turret or not.
- StopCarryTurret()UnLinks the auto turret from the player and sets it on the ground.
- CanPlayerPlaceTurret()Try to place a Turret where the player is looking.
- RemoteControlTurret()Remote control into a turret
- RemoteControlTurretOff()Stops remote controlling a turret
- SetTurretTargetEnt()Set the target entity for this vehicle turret.
- SetTurretTargetRelativeAngles()Set the target entity for this vehicle turret.
- ClearTurretTarget()Clear the target for the vehicle turret.
- SetTurretSpinning()Set the minigun spin for the turret on this entity.
- SetTurretTargetVec()Set the target position for this vehicle turret.
- Target_SetTurretAquire()Sets if the target can be attacked by SAM turrets
- GetTurretTargetVec()Get the target position for this vehicle turret or gunner.
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).