halt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 9: Line 8:


|gr2= Broken Commands |GROUP2=
|gr2= Broken Commands |GROUP2=
____________________________________________________________________________________________


| This command was meant to break the script into debugger, however currently it doesn't do anything except displaying and logging the following error: <tt>Error Debugger breakpoint hit</tt>. |DESCRIPTION=
| This command was meant to break the script into debugger, however currently it doesn't do anything except displaying and logging the following error: <tt>Error Debugger breakpoint hit</tt>. |DESCRIPTION=
____________________________________________________________________________________________


| '''halt''' |SYNTAX=
| '''halt''' |SYNTAX=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[if]] (_displayAnError) [[then]] {[[halt]]};</code>|EXAMPLE1=
|x1= <code>[[if]] (_displayAnError) [[then]] {[[halt]]};</code>|EXAMPLE1=
____________________________________________________________________________________________


| [[assert]] [[terminate]] |SEEALSO=
| [[assert]] [[terminate]] |SEEALSO=

Revision as of 01:37, 17 January 2021

Hover & click on the images for description

Description

Description:
This command was meant to break the script into debugger, however currently it doesn't do anything except displaying and logging the following error: Error Debugger breakpoint hit.
Groups:
Program FlowBroken Commands

Syntax

Syntax:
halt
Return Value:
Nothing

Examples

Example 1:
if (_displayAnError) then {halt};

Additional Information

See also:
assert terminate

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