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.
type()
Do not ever store an instance of this type anywhere but in a scope of an event because entity might be removed.
Method
Returns the value.
Arguments
None.
Returns
Type
Description
<type>
Value.
Example
local health = player.m_iHealth:get();
Sets the value.
Name
value
Nothing.
Last updated 1 year ago
player.m_iHealth:set(50); -- won't really do anything with the health