Repository navigation
Scripting Shell
Executes a Serious Engine 1 shell script. Equivalent to the engine's
CShell::Execute()function.
Arguments:
-
script- String with the shell script.
Return value: null
Checks whether the specified symbol exists in the shell.
Arguments:
-
symbol- String with the variable symbol.
Return value: bool
Returns float value of the specified shell symbol. May return an arbitrary erroneous value if the symbol doesn't exist or is not a float. Equivalent to the engine's
CShell::GetFLOAT()function.
Arguments:
-
symbol- String with the variable symbol.
Return value: float
Equivalent to the engine's
CShell::SetFLOAT()function.
Arguments:
-
symbol- String with the variable symbol. -
value-integerorfloatwith the value to set.
Return value: null
Returns integer value of the specified shell symbol. May return an arbitrary erroneous value if the symbol doesn't exist or is not an integer. Equivalent to the engine's
CShell::GetINDEX()function.
Arguments:
-
symbol- String with the variable symbol.
Return value: integer
Equivalent to the engine's
CShell::SetINDEX()function.
Arguments:
-
symbol- String with the variable symbol. -
value-integerorboolwith the value to set.
Return value: null
Returns string value of the specified shell symbol. May return an arbitrary erroneous value if the symbol doesn't exist or is not a string. Equivalent to the engine's
CShell::GetString()function.
Arguments:
-
symbol- String with the variable symbol.
Return value: string
Equivalent to the engine's
CShell::SetString()function.
Arguments:
-
symbol- String with the variable symbol. -
value- String with the value to set.
Return value: null
Returns current value of the specified shell symbol regardless of type converted to a string. Equivalent to the engine's
CShell::GetValue()function.
Arguments:
-
symbol- String with the variable symbol.
Return value: string
Equivalent to the engine's
CShell::SetValue()function.
Arguments:
-
symbol- String with the variable symbol. -
value- String with the value to set, e.g. a number if the variable is ofINDEX/FLOATtype.
Return value: null
Designed and developed by Dreamy Cecil since 2022