C_CSWeaponBase

This type represents a CCSWeaponBase entity.

circle-info

This type inherits C_BaseEntity type. All of its base methods and fields are also available in this type.

GetAbsOrigin

Method

Returns the absolute origin (the one that is used for rendering).

Arguments

None.

Returns

Type

Description

Origin.

Example

local org = wep:GetAbsOrigin();

GetDefIndex

Method

Returns the weapon definition index.

Arguments

None.

Returns

Type

Description

Example

GetType

Method

Returns the weapon type.

Arguments

None.

Returns

Type

Description

Weapon type.

Example

GetData

Method

Returns the weapon static data.

Arguments

None.

Returns

Type

Description

Weapon data.

Example

Last updated