collect3DENHistory: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|=GROUP1" to "|GROUP1=") |
No edit summary |
||
Line 50: | Line 50: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on October 26, 2020 - 01:15 (UTC)</dd> | |||
<dt class="note">[[User:7erra|7erra]]</dt> | |||
<dd class="note"> | |||
The code block will not return any value: | |||
<code>_unit {{=}} [[collect3DENHistory]] { | |||
[[create3DENEntity]] ["Object", "C_Protagonist_VR_F", [[screenToWorld]] [0.5, 0.5]]; | |||
}; | |||
_unit {{cc|<null>}}</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 02:15, 26 October 2020
Description
- Description:
- Execute a block of code in which all Eden Editor operations will be recorded as one history step. For example creating an entity, setting its attributes and then connections would normally be recorded as three different steps. Calling them all within single collect3DENHistory block will group them together and the user will need to undo only once to revert the changes.
- Groups:
- Eden Editor
Syntax
Examples
- Example 1:
collect3DENHistory { _logic = create3DENEntity ["Logic", "Logic", position player]; add3DENConnection ["Sync", [_logic], player ]; };
Creates a logic and connects it to player in one history step.
Additional Information
- See also:
- add3DENConnection create3DENComposition create3DENEntity delete3DENEntities do3DENAction remove3DENConnection set3DENAttributes set3DENObjectType
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
- Posted on October 26, 2020 - 01:15 (UTC)
- 7erra
-
The code block will not return any value:
_unit = collect3DENHistory { create3DENEntity ["Object", "C_Protagonist_VR_F", screenToWorld [0.5, 0.5]]; }; _unit // <null>