Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description:

Specifies the code to run when a Team Switch occurs.

Note: If multiple onTeamSwitch commands are issued, then only the last one executes.

Syntax

Syntax:onTeamSwitch command
Parameters:
  • command: String or Code - Command to execute. The command has access to the following parameters through _this:
Return Value:Nothing

Examples

Examples:onTeamSwitch {[_from, _to] execVM "myTeamSwitchScript.sqf"}

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes