WEAPON:Initialize
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.
Garry's Mod
Rust
Steamworks
Wiki Help