mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 16:03:31 +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": {
|
||||
_type = "G-U-C-F-R";
|
||||
};
|
||||
@@ -65,9 +66,10 @@ switch (_unit_type) do {
|
||||
default {
|
||||
_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;
|
||||
switch (_vehicle_type) do {
|
||||
case "Car": {
|
||||
@@ -100,7 +102,9 @@ if (typeOf (vehicle _unit) != typeOf _unit) then {
|
||||
case "WheeledAPC": {
|
||||
_type = "G-U-C-I-Z";
|
||||
};
|
||||
default {};
|
||||
default {
|
||||
_type = "G-U-C-I";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user