mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-14 10:23:30 +00:00
on role function, added default role and improved vehicle role handling
This commit is contained in:
@@ -26,9 +26,10 @@ switch (side _unit) do {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
_unit_type = _unit call BIS_fnc_objectType select 1;
|
_unit_type = _unit call BIS_fnc_objectType;
|
||||||
|
|
||||||
switch (_unit_type) do {
|
if ((_unit_type select 0) == "Soldier") then {
|
||||||
|
switch (_unit_type select 1) do {
|
||||||
case "AT": {
|
case "AT": {
|
||||||
_type = "G-U-C-F-R";
|
_type = "G-U-C-F-R";
|
||||||
};
|
};
|
||||||
@@ -66,8 +67,9 @@ switch (_unit_type) do {
|
|||||||
_type = "G-U-C-I";
|
_type = "G-U-C-I";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
if (typeOf (vehicle _unit) != typeOf _unit) then {
|
if ((typeOf (vehicle _unit) != typeOf _unit) or ((_unit_type select 0) == "Vehicle")) then {
|
||||||
_vehicle_type = (vehicle _unit) call BIS_fnc_objectType select 1;
|
_vehicle_type = (vehicle _unit) call BIS_fnc_objectType select 1;
|
||||||
switch (_vehicle_type) do {
|
switch (_vehicle_type) do {
|
||||||
case "Car": {
|
case "Car": {
|
||||||
@@ -100,7 +102,9 @@ if (typeOf (vehicle _unit) != typeOf _unit) then {
|
|||||||
case "WheeledAPC": {
|
case "WheeledAPC": {
|
||||||
_type = "G-U-C-I-Z";
|
_type = "G-U-C-I-Z";
|
||||||
};
|
};
|
||||||
default {};
|
default {
|
||||||
|
_type = "G-U-C-I";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user