SetVar (deprecated)

Category: Variables
Since engine version: 4.6.5.0 CP

Description

Assigns the value iValue to any thread-local variable (from 0) and outputs it again. The data type is variable. Thread-local variables are valid only for the duration of the current function call. Numbered variables have been deprecated by variables with names, but are useful for arrays.

Syntax

any SetVar (int iVarIndex, any Value);

Parameters

iVarIndex:
Thread local variable to be set.
Value:
Value to be set.

Changelog

Date Author Version Description
23rd December 2022 Funni unknown Deprecated: Already marked as deprecated in the developer documentation of clonk.de. Thus deprecated at least since 4.9.10.7 [330] CR.
See also: Global, Local, SetGlobal, SetLocal, Var
jwk, April 2002
Funni, 23rd December 2022