This type represents a CCSWeaponBase entity.
CCSWeaponBase
This type inherits C_BaseEntity type. All of its base methods and fields are also available in this type.
C_BaseEntity
Method
Returns the absolute origin (the one that is used for rendering).
Arguments
None.
Returns
Type
Description
Vector
Origin.
Example
local org = wep:GetAbsOrigin();
Returns the weapon definition index.
EItemDefinitionIndex
Weapon ID.
Returns the weapon type.
CSWeaponType
Weapon type.
Returns the weapon static data.
CCSWeaponBaseVData
Weapon data.
Last updated 2 days ago
local wep_id = wep:GetDefIndex();
local type = wep:GetType();
local data = wep:GetData();