collect3DENHistory: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "") |
(Unscheduled note) |
||
Line 8: | Line 8: | ||
| 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. | | 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. | ||
{{Feature | Informative | The code will be run in [[Scheduler#Unscheduled_Environment|Unscheduled Environment]], which means you can't [[canSuspend|suspend]] the code via commands e.g. {{ic|[[sleep]]}}.}} | |||
| '''collect3DENHistory''' code | | '''collect3DENHistory''' code |
Revision as of 13:57, 1 June 2021
Description
- Description:
- Description needed
- Groups:
- Eden Editor
Syntax
- Syntax:
- Syntax needed
- Parameters:
- code: Code
- Return Value:
- Return value needed
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:
- See also needed
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
- Posted on October 26, 2020 - 01:15 (UTC)
- 7erra
-
Contrary to other code block structures (call, if/then/exitWith, switch/case/default, etc.) the code block of collect3DENHistory will not return any value:
_unit = collect3DENHistory { create3DENEntity ["Object", "C_Protagonist_VR_F", screenToWorld [0.5, 0.5]]; }; _unit // <null>