removeEventHandler: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (moved command to template) |
||
Line 3: | Line 3: | ||
[[Category:Scripting Commands ArmA|REMOVEEVENTHANDLER]] | [[Category:Scripting Commands ArmA|REMOVEEVENTHANDLER]] | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofpr |= Game name | |||
|1.85|= Game version | |||
____________________________________________________________________________________________ | |||
| Removes event handler added by [[addEventHandler]]. | |||
Format of handler is [type, index]. | |||
Index is returned by [[addEventHandler]]. | |||
When any handler is removed, all handler indices higher than the deleted one should be decremented. |= Description | |||
____________________________________________________________________________________________ | |||
| object '''removeEventHandler''' handler |= Syntax | |||
|p1= object: [[Object]] |= Parameter 1 | |||
|p2= handler: [[Array]] |= Parameter 2 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>[[player]] removeEventHandler ["killed", 0]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
Revision as of 02:26, 3 August 2006
Description
- Description:
- Removes event handler added by addEventHandler. Format of handler is [type, index]. Index is returned by addEventHandler. When any handler is removed, all handler indices higher than the deleted one should be decremented.
- Groups:
- Uncategorised
Syntax
- Syntax:
- object removeEventHandler handler
- Parameters:
- object: Object
- handler: Array
- Return Value:
- Nothing
Examples
- Example 1:
[[player]] removeEventHandler ["killed", 0]
Additional Information
- See also:
- See also needed
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