scopeName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Example added, description slightly extended)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Defines name of current scope. Name is visible in debugger, and name is also used as reference in some commands. Scope name can be defined only once per scope. |= Description
| Defines name of current scope. Name is visible in debugger, and name is also used as reference in some commands like [[breakOut]] and [[breakTo]]. Scope name can be defined only once per scope. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 15: Line 15:


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
|x1= <code>[[scopeName]] "main";
while {true} do {
[[scopeName]] "loop1";
while {true} do {
[[scopeName]] "loop2";
...
};
};
</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 16:58, 7 March 2015

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Defines name of current scope. Name is visible in debugger, and name is also used as reference in some commands like breakOut and breakTo. Scope name can be defined only once per scope.
Groups:
Uncategorised

Syntax

Syntax:
scopeName name
Parameters:
name: String
Return Value:
Nothing

Examples

Example 1:
scopeName "main"; while {true} do { scopeName "loop1"; while {true} do { scopeName "loop2"; ... }; };

Additional Information

See also:
breakOutbreakTo

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

Notes

Bottom Section