This type represents a CCSWeaponBase entity.
CCSWeaponBase
This type inherits base_entity type. All of its base methods and fields are also available in this type.
base_entity
Method
Returns the absolute origin (the one that is used for rendering).
Arguments
None.
Returns
Type
Description
vector
Origin.
Example
local org = wep:get_abs_origin();
Returns the weapon ID.
weapon_id
Weapon ID.
Returns the weapon type.
csweapon_type
Weapon type.
Returns the weapon static data.
ccsweapon_base_vdata
Weapon data.
Last updated 12 months ago
local wep_id = wep:get_id();
local type = wep:get_type();
local data = wep:get_data();