Garry's Mod Wiki

Revision Difference

WEAPON:OnRemove#565535

<function name="OnRemove" parent="WEAPON" type="hook"> <description>Called when the swep is about to be removed.</description>⤶ <description>Called when the <page text="Scripted Weapon">Scripted Entities</page> is about to be removed.⤶ <page>Entity:GetOwner</page> may be unset at this point, see <page>WEAPON:OnDrop</page> and <page>WEAPON:OwnerChanged</page>.⤶ </description>⤶ <realm>Shared</realm> </function>