Back to TPG

tpg.ent.flag.server:CarrierStillValid

S🏷️ Flag

Part of TPG namespace

ENT:CarrierStillValid()
View on GitHub|entities/entities/tpg_flag/init.lua:151-154
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Whether the current carrier is still a legitimate holder: valid, a player, alive, and on a team. Used by ENT:Think to decide whether to drop the flag every tick -- a carrier who disconnects, dies, or gets moved to spectate all fail this the same way.

Parameters

No parameters.

Returns

TypeDescription
boolean

Examples

No examples available.

Used In

No usages found in the codebase.