scopeName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(errors when attempt to set different name)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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 should be defined only once per scope. Trying to set a different name on the scope that has already defined scope name will result in error. |= 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 should be defined only once per scope. Trying to set a different name on the scope that has already defined scope name will result in error. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''scopeName''' name |= Syntax
| '''scopeName''' name |SYNTAX=


|p1= name: [[String]] |= Parameter 1
|p1= name: [[String]] |PARAMETER1=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 25: Line 25:
};
};
};
};
</code> |= Example 1
</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[breakOut]], [[breakTo]] |= See also
| [[breakOut]], [[breakTo]] |SEEALSO=


}}
}}

Revision as of 15:46, 7 April 2019

-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 should be defined only once per scope. Trying to set a different name on the scope that has already defined scope name will result in error.
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