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

NameRequired?Details
nameRequired The name of the bad place. If name is not "", the bad place can be moved or deleted by using the unique name.
durationRequired 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.
originRequired The origin of the cylinder.
radiusRequired The radius of the cylinder.
heightRequired The height of the cylinder.
teamRequired 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:

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