Back to TPG

TPG.Restrictions.StripBlocked

S🏷️ Entrestrictions

Part of TPG namespace

TPG.Restrictions.StripBlocked(entList, ply)
View on GitHub|gamemode/systems/sv_entrestrictions.lua:126-137
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Remove every restricted entity from a just-pasted dupe. Dupes are the other way in: a saved contraption can carry a health kit or a mine bolted to the hull. Called from sv_duplication.lua on paste, before anything else looks at the build; a no-op for admins. player.

Parameters

NameTypeDescription
entListtableEntities from the paste.
plyPlayerThe pasting player.

Returns

TypeDescription
numberHow many entities were removed, so the caller can tell the

Examples

No examples available.

Used In

No usages found in the codebase.