BIS fnc debugConsoleExec: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Diagnostic


<!---|arg= local |Multiplayer Arguments=--->
|descr= Executes Debug Console code.


<!---|eff= local |Multiplayer Effects=--->
|s1= [target, code] call [[BIS_fnc_debugConsoleExec]]


| <pre>/*
|p1= target: [[Number]] -
Author:
*0 - local
Killzone_Kid
*1 - global
*2 - server


Description:
|p2= code: [[Code]] - code to be executed
Executes Debug Console code


Parameter(s):
|r1= [[Nothing]]
0: NUMBER - target (0: local, 1: global, 2: server)
1: CODE - code


Returns:
|x1= <sqf>[1,{hint "Hello Players!"}] call BIS_fnc_debugConsoleExec;</sqf>
NOTHING
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_debugConsoleExec]]|Syntax=
|seealso= [[Arma 3: Debug Console]] [[BIS_fnc_isDebugConsoleAllowed]]
 
|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=
 
| |See also=
}}
}}
[[Category:Function Group: Debug|{{uc:debugConsoleExec}}]]
[[Category:Functions|{{uc:debugConsoleExec}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:debugConsoleExec}}]]

Latest revision as of 14:00, 8 November 2023

Hover & click on the images for description

Description

Description:
Executes Debug Console code.
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
[target, code] call BIS_fnc_debugConsoleExec
Parameters:
target: Number -
  • 0 - local
  • 1 - global
  • 2 - server
code: Code - code to be executed
Return Value:
Nothing

Examples

Example 1:
[1,{hint "Hello Players!"}] call BIS_fnc_debugConsoleExec;

Additional Information

See also:
Arma 3: Debug Console BIS_fnc_isDebugConsoleAllowed

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