add3DENEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}}" to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3
|game= arma3


|1.56
|version1= 1.56


|gr1= Eden Editor
|gr1= Eden Editor
|gr2= Event Handlers
|gr2= Event Handlers


| Add code to be run when a [[Eden Editor]] event is triggered.
|descr= Adds an [[Arma 3: Event Handlers: Eden Editor|Eden Editor Event Handler]].
<br><br>
 
See the list of all [[Arma_3:_Event_Handlers:_Eden_Editor|Eden Editor Event Handlers]].
|s1= '''add3DENEventHandler''' [type, code]
 
|p1= type: [[String]] - See [[Arma 3: Event Handlers: Eden Editor|Eden Editor Event Handler]]


| '''add3DENEventHandler''' [type,code]
|p1= type: [[String]]
|p2= code: [[Code]]
|p2= code: [[Code]]


| [[Number]]
|r1= [[Number]]


|x1= <code>eh = [[add3DENEventHandler]] ["onUndo",{[[systemChat]] "Zip..."}];</code>
|x1= <code>eh = [[add3DENEventHandler]] ["onUndo", {[[systemChat]] "Zip..."}];</code>


|  
|seealso= [[remove3DENEventHandler]] [[removeAll3DENEventHandlers]]
[[remove3DENEventHandler]]
[[removeAll3DENEventHandlers]]
}}
}}

Revision as of 23:04, 18 May 2021

Hover & click on the images for description

Description

Description:
Adds an Eden Editor Event Handler.
Groups:
Eden EditorEvent Handlers

Syntax

Syntax:
add3DENEventHandler [type, code]
Parameters:
type: String - See Eden Editor Event Handler
code: Code
Return Value:
Number

Examples

Example 1:
eh = add3DENEventHandler ["onUndo", {systemChat "Zip..."}];

Additional Information

See also:
remove3DENEventHandler removeAll3DENEventHandlers

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