cs2_weapon_base
This type represents a CCSWeaponBase entity.
get_abs_origin
Method
Returns the absolute origin (the one that is used for rendering).
Arguments
None.
Returns
Type
Description
Origin.
Example
local org = wep:get_abs_origin();get_id
Method
Returns the weapon ID.
Arguments
None.
Returns
Type
Description
Weapon ID.
Example
local wep_id = wep:get_id();get_type
Method
Returns the weapon type.
Arguments
None.
Returns
Type
Description
Weapon type.
Example
local type = wep:get_type();get_data
Method
Returns the weapon static data.
Arguments
None.
Returns
Type
Description
Weapon data.
Example
local data = wep:get_data();Last updated