ax.player.meta¶
Source: gamemode/modules/zones/meta/sh_player.lua
Get all physical zones the player is currently in.
Documented functions: 20
Functions¶
ax.player.meta:CanSeeZone(identifier)ax.player.meta:DominantZoneHasFlag(flagName, flagValue)ax.player.meta:GetCurrentZoneName()ax.player.meta:GetDistanceToZone(identifier)ax.player.meta:GetDominantZone()ax.player.meta:GetDominantZoneData(key)ax.player.meta:GetHighestPriorityZone()ax.player.meta:GetVisibleZones()ax.player.meta:GetZoneBlend()ax.player.meta:GetZoneCount()ax.player.meta:GetZoneData(key)ax.player.meta:GetZoneNames()ax.player.meta:GetZones()ax.player.meta:GetZonesByType(zoneType)ax.player.meta:GetZonesWithFlag(flagName, flagValue)ax.player.meta:GetZoneTracking()ax.player.meta:IsInMultipleZones()ax.player.meta:IsInZone(identifier)ax.player.meta:IsInZoneType(zoneType)ax.player.meta:IsInZoneWithFlag(flagName, flagValue)
ax.player.meta:CanSeeZone(identifier)¶
Check if the player can see a specific zone (PVS/trace).
Realm: shared
Returns
boolean: True if player can see the zone
Usage
ax.player.meta:DominantZoneHasFlag(flagName, flagValue)¶
Check if the player's dominant zone has a specific flag.
Realm: shared
Returns
boolean: True if dominant zone has the flag
Usage
ax.player.meta:GetCurrentZoneName()¶
Returns the player's most highest priority zone's name.
Realm: shared
Returns
string|nil: Zone name or nil
Usage
ax.player.meta:GetDistanceToZone(identifier)¶
Get distance to a specific zone's center/origin.
Realm: shared
Returns
number|nil: Distance or nil if zone not found
Usage
ax.player.meta:GetDominantZone()¶
Get the dominant zone for the player.
Realm: shared
Returns
table|nil: The dominant zone spec or nil
Usage
ax.player.meta:GetDominantZoneData(key)¶
Get a specific data value from the player's dominant zone.
Realm: shared
Returns
any: The data value or nil
Usage
ax.player.meta:GetHighestPriorityZone()¶
Get the highest priority zone the player is in. This is the first zone returned by GetZones() since they're sorted by priority.
Realm: shared
Returns
table|nil: The highest priority zone or nil
Usage
ax.player.meta:GetVisibleZones()¶
Get all visible (PVS/trace) zones for the player.
Realm: shared
Returns
table: Array of zone specs with weight field
Usage
ax.player.meta:GetZoneBlend()¶
Get the full zone blend state for the player.
Realm: shared
Returns
table: Blend state with physical, visible, and dominant fields
Usage
ax.player.meta:GetZoneCount()¶
Get the number of zones the player is currently in.
Realm: shared
Returns
number: Number of zones
Usage
ax.player.meta:GetZoneData(key)¶
Get a specific data value from any zone the player is in (highest priority).
Realm: shared
Returns
any: The data value or nil
Usage
ax.player.meta:GetZoneNames()¶
Get all zone names the player is currently in.
Realm: shared
Returns
table: Array of zone names
Usage
ax.player.meta:GetZones()¶
Get all physical zones the player is currently in.
Realm: shared
Returns
table: Array of zone specs, sorted by priority
Usage
ax.player.meta:GetZonesByType(zoneType)¶
Get all zones of a specific type the player is in.
Realm: shared
Returns
table: Array of zone specs
Usage
ax.player.meta:GetZonesWithFlag(flagName, flagValue)¶
Get all zones the player is in that have a specific flag.
Realm: shared
Returns
table: Array of zone specs
Usage
ax.player.meta:GetZoneTracking()¶
Get the player's zone tracking state.
Realm: shared
Returns
table|nil: Tracking state or nil
Usage
ax.player.meta:IsInMultipleZones()¶
Check if the player is in multiple zones.
Realm: shared
Returns
boolean: True if in more than one zone
Usage
ax.player.meta:IsInZone(identifier)¶
Check if the player is in a specific zone.
Realm: shared
Returns
boolean: True if player is in the zone
Usage
ax.player.meta:IsInZoneType(zoneType)¶
Check if the player is in any zone of a specific type.
Realm: shared
Returns
boolean: True if in a zone of that type
Usage
ax.player.meta:IsInZoneWithFlag(flagName, flagValue)¶
Check if the player is in a zone with a specific flag.
Realm: shared
Returns
boolean: True if in a zone with the flag
Usage