Call of Duty 4: Scripting Reference - BadPlaces::BadPlace Brush
From COD Modding & Mapping Wiki
BadPlace_Brush( <name>, <duration>, <brush entity>, <team>, ... )
Creates a bad place from a brush entity. AI will flee this position if they can, and will not go into it if they can avoid it.
Call this on:
BadPlace_Brush( "moody", -1, volumeEnt, "axis" );
- <name> The name of the bad place. If name is not "", the bad place can be moved or deleted by using the unique name.
- <duration> 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.
- <brush entity> The brush entity representing the bad place.
- <team> 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'.