Garry's Mod Wiki
WEAPON:Initialize()
Description
Called when the weapon entity is created.
Entity:GetOwner will return NULL at this point because the weapon is not equpped by a player or NPC yet. Use WEAPON:Equip or WEAPON:Deploy if you need the owner to be valid.
Example
Sets the weapon hold type to SWEP.HoldType.
Example
Fixes the function not being called clientside.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...