CHitboxInfo

This type encapsulates all of the hitbox information that can be retrieved.

GetName

Method

Returns the name of the hitbox.

Arguments

None.

Returns

Type

Description

string

The name

Example

local hbox_name = hitbox:GetName();

GetSurfaceProperty

Method

Returns the hitbox's surface property.

Arguments

None.

Returns

Type

Description

string

The hitbox property

Example


GetBoneName

Method

Returns the hitbox's bone name.

Arguments

None.

Returns

Type

Description

string

The hitbox bone

Example


GetMinBounds

Method

Returns the hitbox's minimum bounds.

Arguments

None.

Returns

Type

Description

The mins

Example


GetMaxBounds

Method

Returns the hitbox's maximum bounds.

Arguments

None.

Returns

Type

Description

The maxs

Example


GetShapeRadius

Method

Returns the hitbox's radius.

Arguments

None.

Returns

Type

Description

number

The radius

Example


GetBoneNameHash

Method

Returns the hitbox's name hash.

Arguments

None.

Returns

Type

Description

number

The hash

Example


GetGroupID

Method

Returns the hitbox's group ID.

Arguments

None.

Returns

Type

Description

number

The ID

Example


IsTranslationOny

Method

Returns whether the hitbox only translates or not.

Arguments

None.

Returns

Type

Description

boolean

The ID

Example


GetCRC

Method

Returns the hitbox's CRC value.

Arguments

None.

Returns

Type

Description

number

The CRC

Example


GetRenderColor

Method

Returns the hitbox's rendering color. Not really useful.

Arguments

None.

Returns

Type

Description

userdata

The color

Example


GetHitboxIndex

Method

Returns the hitbox's unique index.

Arguments

None.

Returns

Type

Description

number

The index

Example

Last updated