removeMPEventHandler: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(39 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2oa | | |game1= arma2oa | ||
|version1= 1.55 | |||
| | |game2= tkoh | ||
| | |version2= 1.00 | ||
| | |game3= arma3 | ||
|version3= 0.50 | |||
| | |gr1= Multiplayer | ||
| | |gr2= Event Handlers | ||
| | |arg= global | ||
| | |eff= global | ||
| | |descr= Removes MP event handler added by [[addMPEventHandler]]. | ||
| [[ | |s1= unitName [[removeMPEventHandler]] [event, index] | ||
| | |p1= unitName: [[Object]] | ||
| | |p2= event: [[String]] | ||
|p3= index: [[Number]] - index returned by [[addMPEventHandler]] | |||
|r1= [[Nothing]] | |||
|x1= <sqf>player removeMPEventHandler ["MPKilled", 0];</sqf> | |||
|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