Garry's Mod Wiki

Revision Difference

Global.SafeRemoveEntity#568276

<function name="SafeRemoveEntity" parent="Global" type="libraryfunc"> <description>Removes the given entity unless it is a player or the world entity.</description> <description>Removes the given entity unless it is a player or the world entity. It will check if the input is a valid entity before removal.</description> <realm>Shared and Menu</realm> <file line="270-L279">lua/includes/util.lua</file> <args> <arg name="ent" type="Entity">Entity to safely remove.</arg> <arg name="ent" type="Entity">Entity to remove.</arg> </args> </function>