onTeamSwitch: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (template:command argument fix) |
||
Line 15: | Line 15: | ||
| '''onTeamSwitch''' commandset |= Syntax | | '''onTeamSwitch''' commandset |= Syntax | ||
|p1= commandset: [[String]] or [[Code]] |= | |p1= commandset: [[String]] or [[Code]] |PARAMETER1= | ||
|p2= |= | |p2= |PARAMETER2= | ||
|p3= |= | |p3= |PARAMETER3= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[onTeamSwitch]] {[_from, _to] [[execVM]] "myTeamSwitchScript.sqf";};</code>|= | |x1= <code>[[onTeamSwitch]] {[_from, _to] [[execVM]] "myTeamSwitchScript.sqf";};</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Team_Switch]], [[enableTeamSwitch]], [[onBriefingTeamSwitch]], [[teamSwitch]], [[teamSwitchEnabled]] |= | | [[Team_Switch]], [[enableTeamSwitch]], [[onBriefingTeamSwitch]], [[teamSwitch]], [[teamSwitchEnabled]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:35, 7 April 2019
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. onTeamSwitch {_from enableAI "TeamSwitch"}; so that the unit continues with waypoints NOTE: When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it
- 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