Back to TPG

TPG.Protection.IsInEnemySafezone

S🏷️ Protection

Part of TPG namespace

TPG.Protection.IsInEnemySafezone(ply)
View on GitHub|gamemode/player/sv_protection.lua:54-63
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Is ply inside the ENEMY team's safezone? Off a team, or the enemy's spawn not published yet, returns false (there's nothing to be "in"). Used by the protection Think loop to kill loitering players; unlike IsInSafezone, this is never a state a player should passively sit in.

Parameters

NameTypeDescription
plyPlayer

Returns

TypeDescription
boolean

Examples

No examples available.

Used In

No usages found in the codebase.