removeMPEventHandler: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|1.55 | |version1= 1.55 | ||
|game2= tkoh | |game2= tkoh | ||
Line 20: | Line 20: | ||
|descr= Removes MP event handler added by [[addMPEventHandler]]. | |descr= Removes MP event handler added by [[addMPEventHandler]]. | ||
|s1= | |s1= unitName [[removeMPEventHandler]] [event, index] | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] | ||
Line 30: | Line 30: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>player removeMPEventHandler ["MPKilled", 0];</sqf> | ||
|seealso= [[:Category:Event Handlers|EventHandlers list]] | |seealso= [[:Category:Event Handlers|EventHandlers list]] [[addMPEventHandler]] [[removeAllMPEventHandlers]] | ||
}} | }} | ||
{{Note | |||
|user= .kju | |||
|timestamp= 20110725194100 | |||
|text= At least for MPKilled it needs to be executed where the target unit is local. The effect (the removal) is global. | |||
}} | |||
Latest revision as of 20:34, 3 May 2024
Description
- Description:
- Removes MP event handler added by addMPEventHandler.
- Groups:
- MultiplayerEvent Handlers
Syntax
- Syntax:
- unitName removeMPEventHandler [event, index]
- Parameters:
- unitName: Object
- event: String
- index: Number - index returned by addMPEventHandler
- Return Value:
- Nothing
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
- Posted on Jul 25, 2011 - 19:41 (UTC)
- At least for MPKilled it needs to be executed where the target unit is local. The effect (the removal) is global.
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.55
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Multiplayer
- Command Group: Event Handlers
- Scripting Commands: Global Effect