onTeamSwitch: Difference between revisions
|  (links) | Killzone Kid (talk | contribs)   (added note to description, old note goes to talk) | ||
| Line 7: | Line 7: | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | Defines an action performed when the team switch is finished.  | | 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 | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | '''onTeamSwitch'''  | | '''onTeamSwitch''' commandset |= Syntax | ||
| |p1=  | |p1= commandset:  [[String]] or [[Code]]  |= PARAMETER1   | ||
| |p2= |= PARAMETER2   | |p2= |= PARAMETER2   | ||
| Line 34: | Line 34: | ||
| <dl class='command_description'> | <dl class='command_description'> | ||
| <!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
| <!-- Note Section END --> | <!-- Note Section END --> | ||
Revision as of 20:46, 4 June 2015
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
 
	