schema_accessor_t

This type represents a special structure that references a certain field in the entity object.

You can check the returned type by using type() function.

get

Returns the value.

Arguments

None.

Returns

Type

Description

<type>

Value.

Example

local health = player.m_iHealth:get();

set


Sets the value.

Arguments

Name

Type

Description

value

<type>

Value.

Returns

Nothing.

Example

player.m_iHealth:set(50); -- won't really do anything with the health

Last updated