GSC reference › Built-in
CanPlayerPlaceTurret()
Built-in (engine)
Server
Player Called on: player
Try to place a Turret where the player is looking. It'll return an array containing the placement "result", "origin", and "angles".
Signature
<player> CanPlayerPlaceTurret()
Called on an entity: player CanPlayerPlaceTurret(...)
Example (from Treyarch's docs)
placement = level.player CanPlayerPlaceTurret()
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/mp/killstreaks/_placeables.gsc, line 195
placement = player canplayerplaceturret();
Related built-ins
- CanPlayerPlaceVehicle()Try to place a vehicle in front of the player.
- GetPlayerAngles()Get the player view angles
- SetPlayerAngles()Set the player's view angles
- PlayerADS()Gets the player weapon position fraction
- GetPlayerCameraPos()Get the player's camera position
- IsPlayerOnSameMachine()Returns whether or not this player is on the same machine as the other player.
- RevivePlayer()Callback from script to get player out of last stand, increases health, removes damage timer, should clear screen of damageFX
- FinishPlayerDamage()Does damage to a player - usually as part of the damage callback
- ClonePlayer()Clone the player's model for death animations.
- GetPlayerGenderType()Returns the gender string of the player
- PlayerKnockback()Turn knockback on and off for a player
- GetPlayerSelectedGesture()Get the equipped gesture
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).