add3DENEventHandler: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ") |
Lou Montana (talk | contribs) m (Text replacement - "\] +\[" to "] [") |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| | |game1= arma3 | ||
|version1= 1.56 | |version1= 1.56 | ||
Line 11: | Line 10: | ||
|descr= Adds an [[Arma 3: Event Handlers: Eden Editor|Eden Editor Event Handler]]. | |descr= Adds an [[Arma 3: Event Handlers: Eden Editor|Eden Editor Event Handler]]. | ||
|s1= | |s1= [[add3DENEventHandler]] [type, code] | ||
|p1= type: [[String]] - | |p1= type: [[String]] - see [[Arma 3: Event Handlers: Eden Editor|Eden Editor Event Handler]] | ||
|p2= code: [[Code]] | |p2= code: [[Code]] | ||
* Event Handler parameters are accessible via <sqf inline>_this</sqf> | |||
* The Event Handler type is available as <sqf inline>_thisEvent</sqf> | |||
* The Event Handler index is available as <sqf inline>_thisEventHandler</sqf> | |||
|r1= [[Number]] | |r1= [[Number]] | ||
|x1= < | |x1= <sqf>private _ehID = add3DENEventHandler ["onUndo", { systemChat "Zip..." }];</sqf> | ||
|seealso= [[remove3DENEventHandler]] [[removeAll3DENEventHandlers]] | |seealso= [[remove3DENEventHandler]] [[removeAll3DENEventHandlers]] | ||
}} | }} |
Latest revision as of 11:46, 5 May 2024
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
- Event Handler parameters are accessible via _this
- The Event Handler type is available as _thisEvent
- The Event Handler index is available as _thisEventHandler
- Return Value:
- Number
Examples
- Example 1:
Additional Information
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