private_varname = "this is my new variable"; // since Arma 3 v1.54// identical, but less performantprivate"_varname";
_varname = "this is my new variable";
Game will display 2.
Inserting private "_a" in the function prevents the change and so number 1 will be displayed on the screen.
DreadedEntity
Recursive loops require the use of private. Without it, your variables will be overwritten.
654wak654
This command is similar to javascript's let keyword. EDIT: in the way that it scopes the variable to the innermost scope. Otherwise, let and private can behave differently - Lou Montana (talk)