addMPEventHandler: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (global) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 44: | Line 44: | ||
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on May 8, 2015 - 12:24 (UTC)</dd> | |||
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt> | |||
<dd class="note"> | |||
MP EHs are added on every PC and execute on every PC, apart from MPRespawn, that only executes at the locality where unit respawns. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 13:24, 8 May 2015
Description
- Description:
- The format of handler is [type,command]. Check scripting topic Event handlers for more information. The index of the current handler is returned.
- Groups:
- Uncategorised
Syntax
- Syntax:
- unitName addMPEventHandler [type, command];
- Parameters:
- unitName: Object - object to monitor
- type: String - event handler name
- command: String or Code - code to execute
- Return Value:
- Number
Examples
- Example 1:
_index = player addMPEventHandler ["mpkilled", {Null = _this execVM "playerkilled.sqf";}];
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
Notes
Bottom Section
- Posted on May 8, 2015 - 12:24 (UTC)
- Killzone Kid
- MP EHs are added on every PC and execute on every PC, apart from MPRespawn, that only executes at the locality where unit respawns.
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
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- ArmA 2 OA: New Scripting Commands List
- Command Group: Multiplayer