Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Introduces one or more variables to the innermost scope. The variable has to be a local variable (see Local Variables) (the name starts with an underscore).

See the description of Scope for rules and recommendations regarding the use of private and variable declarations.

Syntax

Syntax:private variableName
Parameters:
  • variableName: String - Variable to modify.
Return Value:Nothing

Alternative Syntax

Syntax:private variableNameList
Parameters:
  • variableNameList: Array - List of variables to modify.
Return Value:Nothing

Examples

Examples:private "_varname"; private ["_varname1", "_varname2"];

Additional Information

See also: privateAll, import, Scope
Multiplayer:
Problems:

Notes