engineSetCullZone
Client-side
Replaces an owned or claimed zone definition while retaining its stable ID.
Syntax
bool engineSetCullZone(int id, string type, float x, float y, float z, float width, float depth, float height, int flags [, float rotation = 0, float mirrorV = 0, float normalX = 0, float normalY = 0, float normalZ = 1])Arguments
idintStable zone ID.
typestringattribute, tunnel, or mirror.
x, y, zfloatZone center.
width, depth, heightfloatZone dimensions.
flagsintNative flags from 0 through 65535.
rotation and mirror planefloatoptionalSame optional values as engineCreateCullZone.
Returns
true when the caller may edit the zone and the new definition is valid; false otherwise.
Ownership and lifecycle
When the owner stops, Neon deletes its custom zones and restores any vanilla zones it claimed.
Where this comes from
SOURCECLuaEngineDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp INTRODUCED / EXTENDED89558e874Read the commit and why the change was made RELATED CATEGORY HARNESS cull-zone-test Category-level coverage · test-resources/cull-zone-test
RELATED NEON APIS
Read the system guide →