onTeamSwitch: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (added note to description, old note goes to talk) |
Killzone Kid (talk | contribs) (link to stackable) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Defines an action performed when the team switch is finished. Commandset receives the following special variables: ''_from'' object previous unit, ''_to'' object current unit. Consecutive use of onTeamSwitch command will overwrite previously set commandset. |= Description | | Defines an action performed when the team switch is finished. Commandset receives the following special variables: ''_from'' object previous unit, ''_to'' object current unit. Consecutive use of onTeamSwitch command will overwrite previously set commandset. | ||
{{Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#TeamSwitch|TeamSwitch]]}}|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 03:00, 1 April 2016
Description
- Description:
- Defines an action performed when the team switch is finished. Commandset receives the following special variables: _from object previous unit, _to object current unit. Consecutive use of onTeamSwitch command will overwrite previously set commandset.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
onTeamSwitch {[_from, _to] execVM "myTeamSwitchScript.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