GSC reference › Built-in
StopCarryTurret()
Built-in (engine)
Server
Player Called on: player
UnLinks the auto turret from the player and sets it on the ground.
Signature
<player> StopCarryTurret(<turret>, [origin], [angles])
Called on an entity: player StopCarryTurret(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| turret | Required | turret entity |
| origin | Optional | The new origin of turret |
| angles | Optional | The new angles of turret |
Example (from Treyarch's docs)
player StopCarryTurret( turret, origin, angles )
Real uses in BO3's scripts
Called 2 times in the decompiled scripts. A few, zombies first:
- scripts/mp/killstreaks/_placeables.gsc, line 233
player stopcarryturret(placeable); - scripts/mp/killstreaks/_placeables.gsc, line 578
player stopcarryturret(placeable);
Related built-ins
- IsCarryingTurret()Check if player is carrying turret or not.
- CarryTurret()Links the auto turret to the player to carry around.
- CanPlayerPlaceTurret()Try to place a Turret where the player is looking.
- RemoteControlTurret()Remote control into a turret
- RemoteControlTurretOff()Stops remote controlling a turret
- SetCarryingObject()Enable or disable the player carrying object flag.
- 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
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).