onTeamSwitch: Difference between revisions
Jump to navigation
Jump to search
loyalguard (talk | contribs) m (Fixed typos in description text, added an example, added note about multiple instances.) |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 43: | Line 43: | ||
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:21, 2 November 2011
Description
- Description:
- Defines an action performed when the team switch is finished. Command receives: _from object previous unit, _to object current unit.
- Groups:
- Uncategorised
Syntax
- Syntax:
- onTeamSwitch command
- Parameters:
- command: -
- Return Value:
- Nothing
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
Notes
-
There can only be one instance of onTeamSwitch used per mission. If multiple instances are used then the last one loaded into memory will override previous instance(s). This includes use of onTeamSwitch in installed addons as well. --Loyalguard 04:53, 28 October 2011 (CEST)