SchemaAccessor_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.
Do not ever store an instance of this type anywhere but in a scope of an event because entity might be removed.
offset
Field
Type: number
Get
Method
Returns the value.
Arguments
None.
Returns
Type
Description
<type>
Value.
Example
GetAs
Method
Returns the value casted as another game class. Automatically dereferences pointers.
Arguments
Name
Type
Description
module
string
The name of the module
class
string
The name of the class
Returns
Type
Description
<type>
Casted value.
Example
Set
Method
Sets the value.
Arguments
Name
Type
Description
value
<type>
Value.
Returns
Nothing.
Example
Last updated