Environment.forceSetVarOrConst

Force sets a variable or const no matter if the variable was declared already or is const. This is used by the host application to set globals or locals.

class Environment
void
forceSetVarOrConst
(
in string name
,,
bool isConst
)

Parameters

name string

The name of the variable or const

value ScriptAny

The value of the variable

isConst bool

Whether or not the variable should be considered const and unable to be overwritten by the script

Meta