2015-01-11 19:32:51 +00:00
|
|
|
// by commy2
|
2015-01-11 23:13:47 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 19:32:51 +00:00
|
|
|
|
|
|
|
private ["_unit", "_team", "_message"];
|
|
|
|
|
|
|
|
_unit = _this select 0;
|
|
|
|
_team = _this select 1;
|
|
|
|
|
2015-01-11 23:13:47 +00:00
|
|
|
_unit setVariable [QGVAR(assignedFireTeam), _team, true];
|
2015-01-13 05:14:27 +00:00
|
|
|
[_unit, format ["{_this assignTeam '%1'}", _team]] call EFUNC(common,execRemoteFnc);
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
if (_unit == ACE_player) then {
|
2015-04-06 16:22:43 +00:00
|
|
|
_message = if (_team == "MAIN") then {
|
|
|
|
localize "STR_ACE_Interaction_LeftTeam";
|
|
|
|
} else {
|
|
|
|
_team = localize format ["STR_ACE_Interaction_Team%1", _team];
|
|
|
|
format [localize "STR_ACE_Interaction_JoinedTeam", _team];
|
|
|
|
};
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-04-06 16:22:43 +00:00
|
|
|
[_message] call EFUNC(common,displayTextStructured);
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|