do3DENAction: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\[\[[Cc]ategory:[ _]?Arma[ _]3:[ _]([^|]*)[ _]?\|.*\]\]" to "{{GameCategory|arma3|$1}}")
(added 2.22 changes)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


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


|1.56|Game version=
|gr1= Eden Editor


|gr1= Eden Editor |GROUP1=
|descr= Performs given [[Eden Editor: Actions|Eden Editor action]].
____________________________________________________________________________________________
{{Feature|warning|
Prior to {{GVI|arma3|2.12|size= 0.75}} it was possible to use this command outside of [[:Category:Eden Editor|Eden Editor]].<br>
For example <sqf inline>do3DENAction "MissionSave";</sqf> would wipe the [[mission.sqm]] without a way to restore it when executed accidentally during preview.
}}
 
|s1= [[do3DENAction]] action
 
|p1= action: [[String]] - see [[Eden Editor: Actions]]


| Performs given [[Eden Editor]] action.
|r1= [[Nothing]]
<br><br>
See the [[Eden_Editor:_Actions|list of all actions]].
|DESCRIPTION=
____________________________________________________________________________________________


| '''do3DENAction''' action|SYNTAX=
|s2since= arma3 2.22
|p1= action: [[String]]  |PARAMETER1=


| [[Nothing]] |RETURNVALUE=
|s2= [[do3DENAction]] [action, argument]


|x1= <code>[[do3DENAction]] "MissionSave";// saves the scenario </code>|EXAMPLE1=
|p21= action: [[String]] - see [[Eden Editor: Actions]]
____________________________________________________________________________________________


|  
|p22= argument: [[Anything]] - depends on the used [[Eden Editor: Actions|action]]
[[get3DENActionState]]
 
|SEEALSO=  
|r2= [[Nothing]]
| |MPBEHAVIOUR=  
 
____________________________________________________________________________________________
|x1= <sqf>do3DENAction "MissionSave";</sqf>
}}


<h3 style='display:none'>Notes</h3>
|x2= <sqf>
<dl class='command_description'>
// Since 2.22
<!-- Note Section BEGIN -->
private _par = createHashMap;
<!-- Note Section END -->
_par set ["name", "testfile"];
</dl>
_par set ["folder", "subfolder"];
<!-- DISCONTINUE Notes -->
_par set ["content", "R3voing"];


do3DENAction ["CreateTextFile", _par];
</sqf>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[get3DENActionState]]
{{GameCategory|arma3|New_Scripting_Commands_List}}
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:10, 20 March 2026

Hover & click on the images for description

Description

Description:
Performs given Eden Editor action.
Prior to Arma 3 logo black.png 2.12 it was possible to use this command outside of Eden Editor.
For example do3DENAction "MissionSave"; would wipe the mission.sqm without a way to restore it when executed accidentally during preview.
Groups:
Eden Editor

Syntax

Syntax:
do3DENAction action
Parameters:
action: String - see Eden Editor: Actions
Return Value:
Nothing

Alternative Syntax

Syntax:
do3DENAction [action, argument]
Parameters:
action: String - see Eden Editor: Actions
argument: Anything - depends on the used action
Return Value:
Nothing

Examples

Example 1:
do3DENAction "MissionSave";
Example 2:
// Since 2.22 private _par = createHashMap; _par set ["name", "testfile"]; _par set ["folder", "subfolder"]; _par set ["content", "R3voing"]; do3DENAction ["CreateTextFile", _par];

Additional Information

See also:
get3DENActionState

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note