add3DENEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added 3DEN Category)
m (Text replacement - "\] +\[" to "] [")
 
(40 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.56


|1.52|= Game version
|gr1= Eden Editor
____________________________________________________________________________________________


| Add code to be run when a 3DEN Editor event is triggered.<br/>
|gr2= Event Handlers
Eventhandlers can be found in: [[configFile]] >> "Cfg3DEN" >> "EventHandlers" >> "BIS" |= Description
____________________________________________________________________________________________


| '''add3DENEventHandler''' [type,code]|= Syntax
|descr= Adds an [[Arma 3: Event Handlers: Eden Editor|Eden Editor Event Handler]].
|p1= type: [[String]]  |= PARAMETER1
|p2= code: [[Code]] |= PARAMETER2


| [[Number]] |= RETURNVALUE
|s1= [[add3DENEventHandler]] [type, code]


|p1= type: [[String]] - see [[Arma 3: Event Handlers: Eden Editor|Eden Editor Event Handler]]


|x1= <code>eh = [[add3DENEventHandler]] ["onUndo",{[[systemChat]] "Zip..."}];</code>|= EXAMPLE1
|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]]
[[get3DENMouseOver]]
[[add3DENConnection]]
[[all3DENEntities]]
[[collect3DENHistory]]
[[create3DENComposition]]
[[create3DENEntity]]
[[current3DENOperation]]
[[delete3DENEntities]]
[[do3DENAction]]
[[get3DENActionState]]
[[get3DENAttribute]]
[[get3DENCamera]]
[[get3DENConnections]]
[[get3DENEntityID]]
[[get3DENGrid]] 
[[get3DENIconsVisible]]
[[get3DENLinesVisible]]
[[get3DENSelected]]
[[is3DEN]]
[[is3DENMultiplayer]]
[[move3DENCamera]]
[[remove3DENConnection]]
[[remove3DENEventHandler]]
[[removeAll3DENEventHandlers]]
[[set3DENAttributes]]
[[set3DENGrid]]
[[set3DENIconsVisible]]
[[set3DENLinesVisible]]
[[set3DENObjectType]]
|= SEEALSO
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x1= <sqf>private _ehID = add3DENEventHandler ["onUndo", { systemChat "Zip..." }];</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<!-- DISCONTINUE Notes -->


 
|seealso= [[remove3DENEventHandler]] [[removeAll3DENEventHandlers]]
<h3 style='display:none'>Bottom Section</h3>
}}
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: 3DEN|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:46, 5 May 2024

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:
private _ehID = 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