onTeamSwitch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 24: Line 24:
{{Feature | Informative | When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it (with {{ic|[[onTeamSwitch]] { _from [[enableAI]] "TeamSwitch" };}}) so that the unit continues with [[waypoints]]. }}
{{Feature | Informative | When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it (with {{ic|[[onTeamSwitch]] { _from [[enableAI]] "TeamSwitch" };}}) so that the unit continues with [[waypoints]]. }}


| [[onTeamSwitch]] commandset
|s1=  [[onTeamSwitch]] commandset


|p1= commandset:  [[String]] or [[Code]]
|p1= commandset:  [[String]] or [[Code]]

Revision as of 00:14, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Team SwitchEvent Handlers

Syntax

Syntax:
onTeamSwitch commandset
Parameters:
commandset: String or Code
Return Value:
Nothing

Examples

Example 1:
onTeamSwitch { [_from, _to] execVM "myTeamSwitchScript.sqf"; };

Additional Information

See also:
Team SwitchenableTeamSwitchonBriefingTeamSwitchteamSwitchteamSwitchEnabled

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