Latest Updates: Difference between revisions

From Archon Wiki
Jump to navigation Jump to search
(Created page with "= Editor Unit Loading = Set the tweak EditorDefaultLoading to zero to require the CTRL key to load units onto other units. For editor ease of use for games where units cannot...")
 
No edit summary
Line 3: Line 3:


= Editor Unit Values =
= Editor Unit Values =
You can now set up to 4 user values on units in the editor.
You can now set up to 4 user values on units in the editor.  These are stored in 4 attribs called System_EditorData0 to System_EditorData3.  Users should set them onto the units in the editor in the usual way using SetAttrib.  To facilitate editor functionality the new script command GetEditorLastUnit() is available.
 
= Editor Display Callback =
<code>FUNCTION HELPER_UNIT_EDITOR_DISPLAY(side, unit)</code>
This new function in the helper script is called for each unit on the map in the editor.  If it returns non-zero then the system will include the contents of the first UI string in the information that is shown over the unit (e.g. Fixed, Carryover, etc).

Revision as of 22:32, 8 February 2016

Editor Unit Loading

Set the tweak EditorDefaultLoading to zero to require the CTRL key to load units onto other units. For editor ease of use for games where units cannot carry other units.

Editor Unit Values

You can now set up to 4 user values on units in the editor. These are stored in 4 attribs called System_EditorData0 to System_EditorData3. Users should set them onto the units in the editor in the usual way using SetAttrib. To facilitate editor functionality the new script command GetEditorLastUnit() is available.

Editor Display Callback

FUNCTION HELPER_UNIT_EDITOR_DISPLAY(side, unit)

This new function in the helper script is called for each unit on the map in the editor. If it returns non-zero then the system will include the contents of the first UI string in the information that is shown over the unit (e.g. Fixed, Carryover, etc).