import: Difference between revisions
Jump to navigation
Jump to search
("import" scripting command) Tag: Removed redirect |
mNo edit summary |
||
Line 19: | Line 19: | ||
|s2= [[import]] variableNames | |s2= [[import]] variableNames | ||
|p21= | |p21= variableNames: [[Array]] of [[String]]s - variables to import | ||
|r2= [[Nothing]] | |r2= [[Nothing]] |
Revision as of 17:28, 30 October 2023
Description
- Description:
- Imports one or multiple local variables from the parent scope, and defines them as private variables in the current scope. It can bypass privateAll.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- import variableName
- Parameters:
- variableName: String - variable to import
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- import variableNames
- Parameters:
- variableNames: Array of Strings - variables to import
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- privateAll private params
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note