halt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(47 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|HALT]]
{{RV|type=command
[[Category:Scripting Commands ArmA|HALT]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">''' halt '''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


None
|game5= arma3
|version5= 0.50


'''Type of returned value:'''
|gr1= Program Flow


[[Nothing]]
|gr2= Broken Commands


'''Compatibility:'''
|descr= This command was meant to break the script into debugger, however currently '''it does not do anything''' except displaying and logging the following error: {{hl|Error Debugger breakpoint hit}}.


Version 2.00 required.
|s1= [[halt]]


'''Description:'''
|r1= [[Boolean]] - always returns [[false]]


Stops the program into a debugger.
|x1= <sqf>if (_displayAnError) then {halt};</sqf>


 
|seealso= [[assert]] [[terminate]]
'''Example'''
}}
 
'''halt'''

Latest revision as of 12:40, 8 November 2023

Hover & click on the images for description

Description

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

Syntax

Syntax:
halt
Return Value:
Boolean - always returns false

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