Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
VarN
Category:
Variables
Since engine version:
4.9.1.0 GWE
Description
Returns a reference to a function local variable. This reference can be used for reading or writing.
Syntax
&
VarN (
string
szName);
Parameter
szName:
Name of the variable to which a reference is to be returned
Example
var
v0,v1,v2,v3,v4,v5,v6; VarN(
Format
(
"V%d"
,
Random
(7))) =
Random
(100);
Sets a randomly chosen thread local variable to a random value.
See also:
GlobalN
,
IsRef
,
LocalN
Sven2, April 2002
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script