Eden Editor Event Handlers – Arma 3

From Bohemia Interactive Community
Revision as of 13:53, 2 November 2015 by Str (talk | contribs)
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

OnConnectingStart

OnConnectingEnd

OnCopy

OnCut

OnDeleteUnits

OnGridChange

OnMapClosed

OnMapOpened

OnMessage

OnMissionLoad

OnMissionNew

OnMissionPreview

OnMissionPreviewEnd

OnMissionSave

OnMissionSaveAs

OnModeChange

OnMoveGridDecrease

OnMoveGridIncrease

OnMoveGridToggle

OnPaste

OnPasteUnitOrig

OnRedo

OnRotateGridDecrease

OnRotateGridIncrease

OnRotateGridToggle

OnScaleGridToggle

OnSearchCreate

OnSearchEdit

OnServerToggle

OnSubmodeChange

OnSurfaceSnapToggle

OnTerrainNew

OnToggleMapIDs

OnToggleMapTextures

OnUndo

OnVerticalToggle

OnWidgetNone

OnWidgetRotation

OnWidgetScale

OnWidgetToggle

OnWidgetTranslation

OnWorkspacePartSwitch