mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
skip removing clan tag if spray painted (#9285)
This commit is contained in:
parent
dbe372cb48
commit
e9cde7268f
@ -19,7 +19,11 @@ params ["_vehicle"];
|
||||
|
||||
private _selectionClan = getText (configOf _vehicle >> "selectionClan");
|
||||
if !(_selectionClan in selectionNames _vehicle) exitWith {
|
||||
TRACE_2("vehicle does not have 'selectionClan' selection",_vehicle,_selectionLogo);
|
||||
TRACE_2("vehicle does not have 'selectionClan' selection",_vehicle,_selectionClan);
|
||||
};
|
||||
|
||||
if (_vehicle getVariable [QEGVAR(tagging,hasTag), false]) exitWith {
|
||||
TRACE_1("vehicle has tag applied",_vehicle);
|
||||
};
|
||||
|
||||
TRACE_1("replacing clan logo with empty texture",_vehicle);
|
||||
|
@ -32,6 +32,7 @@ if (_texture == "") exitWith {
|
||||
if (_isVehicleTag) exitWith {
|
||||
TRACE_3("tagging vehicle",_object,typeOf _object,_texture);
|
||||
_object setObjectTextureGlobal [getText (configOf _object >> "selectionClan"), _texture];
|
||||
_object setVariable [QGVAR(hasTag), true, true];
|
||||
// if (_material != "") then { _object setObjectMaterialGlobal ["clan", _material] }; // ??
|
||||
["ace_tagCreated", [objNull, _texture, _object, _unit]] call CBA_fnc_globalEvent;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user