LvmThread

A LvmThread creates a coroutine that allows you to run a single Script asset in an independent environment. All locals and global variables associated with the Script will be maintained within this environment and will not interfere with any other coroutine. Environment variables can still coexist within a LvmThread and can be set and accessed using the _G global table maintained by the virtual machine.

See Also

Static Variables


Name Description
event_mask Bit mask of EventType that the linked Script responds to.
error_mask Bitmask of EventType function error.
handler Reference to the Handler the current LvmThread is associated to.
asset Reference to the Script Asset the thread is handling.
variable_count The number of global variables contained in the associated Script that can dynamically updated at runtime.

Variables


Name Description
enabled Controls the activation state of the active LvmThread.

Functions


Name Description
SetScript Specify a Script to run as a coroutine.
GetVariable Retrieve an existing Script variable using its name as key.
GetVariableAt Retrieve a Variable using its index as key.
GetVariableIndex Get the internal index of an existing Variable.
GetVariableBool Retrieve the value of an existing boolean Variable.
SetVariableBool Set the value of an existing boolean Variable.
GetVariableInt Retrieve the value of an existing integer Variable.
SetVariableInt Set the value of an existing integer Variable.
GetVariableFloat Retrieve the value of an existing float Variable.
SetVariableFloat Set the value of an existing float Variable.
GetVariableVec2 Retrieve the value of an existing vec2 Variable.
SetVariableVec2 Set the value of an existing vec2 Variable.
GetVariableVec3 Retrieve the value of an existing vec3 Variable.
SetVariableVec3 Set the value of an existing vec3 Variable.
GetVariableVec4 Retrieve the value of an existing vec4 Variable.
SetVariableVec4 Set the value of an existing vec4 Variable.
GetVariableString Retrieve the value of an existing string Variable.
SetVariableString Set the value of an existing char Variable.




NRG - API 2022.4.384543 - Fri Nov 4 2022
Copyright © 2022 nrgcore.com. All Rights Reserved. Terms of Service - Privacy Policy - EULA