Eden Editor Event Handlers – Arma 3

From Bohemia Interactive Community
Revision as of 14:44, 2 November 2015 by Str (talk | contribs) (Created page with "Eden Editor event handlers. When added, they will remain until Eden Editor is closed. Playing preview will not erase them. == Scripting == Commands: * add3DENEventHandl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Eden Editor event handlers. When added, they will remain until Eden Editor is closed. Playing preview will not erase them.

Scripting

Commands:

Example:

add3DENEventHandler ["onUndo",{hint "Undo";}]

Config

Alternatively, you can define event handlers directly in the config. Use your custom section (mySection in the example) to prevent overriding handlers from other sources. Handlers defined here will be added automatically when Eden Editor is opened.

class Cfg3DEN
{
	class EventHandlers
	{
		class mySection
		{
			onUndo = "hint 'Undo';";
			// <handlerName> = <handlerExpression>
		};
	};
};

List

Class Description Arguments

OnMissionNew

OnTerrainNew

OnMissionLoad

OnMissionSave

OnMissionSaveAs

OnUndo

OnRedo

OnCut

OnCopy

OnPaste

OnPasteUnitOrig

OnDeleteUnits

OnWidgetToggle

OnWidgetNone

OnWidgetTranslation

OnWidgetRotation

OnWidgetScale

OnMoveGridToggle

OnMoveGridDecrease

OnMoveGridIncrease

OnRotateGridToggle

OnRotateGridDecrease

OnRotateGridIncrease

OnScaleGridToggle

OnGridChange

OnVerticalToggle

OnSurfaceSnapToggle

OnWorkspacePartSwitch

OnModeChange

OnSubmodeChange

OnMapOpened

OnMapClosed

OnMissionPreview

OnMissionPreviewEnd

OnToggleMapTextures

OnToggleMapIDs

OnMessage

OnSearchCreate

OnSearchEdit

OnConnectingStart

OnConnectingEnd

OnServerToggle