GSC reference › Built-in
BadPlace_Cylinder()
Built-in (engine)
Server
Creates a bad place cylinder. AI will flee this position if they can, and will not go into it if they can avoid it.
Signature
BadPlace_Cylinder(<name>, <duration>, <origin>, <radius>, <height>, <team>)
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Required | The name of the bad place. If name is not "", the bad place can be moved or deleted by using the unique name. |
| duration | Required | If duration > 0, the bad place will automatically delete itself after this time. If duration <= 0, the bad place must have a name and will last until manually deleted. |
| origin | Required | The origin of the cylinder. |
| radius | Required | The radius of the cylinder. |
| height | Required | The height of the cylinder. |
| team | Required | You must specify at least one team for which this place is bad, but can give several. The allowed teams are 'axis', 'allies', and 'neutral'. |
Example (from Treyarch's docs)
BadPlace_Cylinder( "moody", -1, level.moodyfall_mn, level.moodyfall_radius, "neutral" )
Real uses in BO3's scripts
Called 5 times in the decompiled scripts. A few, zombies first:
- scripts/zm/zm_prototype_barrels.gsc, line 173
badplace_cylinder("", 1, self.origin, 128, 250, "axis"); - scripts/cp/cp_mi_cairo_aquifer_boss.gsc, line 820
badplace_cylinder(var_e42db353.targetname, -1, ent.origin, 110, 64, "all"); - scripts/cp/cybercom/_cybercom_gadget_firefly.gsc, line 931
badplace_cylinder("swarmBP_" + self.swarm_id, 0, target.origin, 256, 80, "axis"); - scripts/cp/cybercom/_cybercom_gadget_firefly.gsc, line 950
badplace_cylinder("swarmBP_" + self.swarm_id, 0, target.origin, 256, 80, "axis"); - scripts/cp/doa/_doa_fate.gsc, line 1586
badplace_cylinder("bossJustice", -1, boss.origin, 180, 64, "all");
Related built-ins
- PhysicsExplosionCylinder()Created a physics explosion cylinder
- PlaceSpawnPoint()Raises the spawn point up to make sure it's not in the ground, then drops it back down into the ground.
- BadPlace_Box()Creates a bad place box.
- CylinderDamage()Cylinder_dir_vector should contains the direction and the length of the cylinder relative to the base origin
- DoesWeaponReplaceSpawnWeapon()Returns true if the new weapon is an alt mode of the spawn weapon.
- BadPlace_Delete()Deletes a bad place.
- CanPlaceRiotshield()Try to place riotshield where the player is standing.
- CanPlayerPlaceTurret()Try to place a Turret where the player is looking.
- CanPlayerPlaceVehicle()Try to place a vehicle in front of the player.
- IsInAnyBadPlace()Returns whether the AI is in a bad place.
- SetPlacementHint()Sets the placement hint string that will be displayed for this player.
- CollisionTestPointsInCylinder()
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).