onTeamSwitch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "{{Inline code|" to "{{ic|")
Line 14: Line 14:
{{Feature|Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#TeamSwitch|TeamSwitch]]}}
{{Feature|Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#TeamSwitch|TeamSwitch]]}}
<br>
<br>
{{Feature | Informative | When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it (with&nbsp;{{Inline code|[[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&nbsp;{{ic|[[onTeamSwitch]] { _from [[enableAI]] "TeamSwitch" };}}) so that the unit continues with [[waypoints]]. }}


| [[onTeamSwitch]] commandset
| [[onTeamSwitch]] commandset

Revision as of 19:12, 27 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Team SwitchEvent Handlers

Syntax

Syntax:
Syntax needed
Parameters:
commandset: String or Code
Return Value:
Return value needed

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