get3DENActionState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added command)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(39 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.56


|1.52|= Game version
|gr1= Eden Editor
____________________________________________________________________________________________


| Returns state of given operation in the 3DEN Editor.<br/>
|descr= Returns state of given [[Eden Editor: Actions|Eden Editor action]].
Known operations:
* History
* Init
* MissionPartIntro
* MissionPartOutroWin
* MissionPartOutroLoose
* ToggleMap
* ToggleVision
* MoveGridToggle
* RotateGridToggle
* ScaleGridToggle
* SurfaceSnapToggle
* VerticalToggle
* WidgetToggle
* SelectObjectMode
* SelectWaypointMode
* SelectSubmode1
* SelectSubmode2
* SelectSubmode3
* SelectSubmode4
* SelectSubmode5
|= Description
____________________________________________________________________________________________


| '''get3DENActionState''' operation|= Syntax
|s1= [[get3DENActionState]]  action
|p1= operation: [[String]]  |= PARAMETER1


| [[Number]] |= RETURNVALUE
|p1= action: [[String]] - see [[Eden Editor: Actions]]


|r1= [[Number]]


|x1= <code>[[if]] ([[get3DENActionState]] "togglemap" == 1) [[then]] {[[systemChat]] "Editor map is open!"};</code>|= EXAMPLE1
|x1= <sqf>if (get3DENActionState "ToggleMap" == 1) then {systemChat "Editor map is open!"};</sqf>
____________________________________________________________________________________________


| |= SEEALSO
|seealso= [[do3DENAction]]
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<!-- DISCONTINUE Notes -->
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:49, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns state of given Eden Editor action.
Groups:
Eden Editor

Syntax

Syntax:
get3DENActionState action
Parameters:
action: String - see Eden Editor: Actions
Return Value:
Number

Examples

Example 1:
if (get3DENActionState "ToggleMap" == 1) then {systemChat "Editor map is open!"};

Additional Information

See also:
do3DENAction

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