2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2022-09-01 17:44:38 +00:00
|
|
|
/*
|
|
|
|
* Author: veteran29
|
|
|
|
* Replaces the vehicle clan logo with an empty texture.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Vehicle <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [vehicle player] call ace_novehicleclanlogo_fnc_removeClanLogo
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_vehicle"];
|
|
|
|
|
|
|
|
private _selectionClan = getText (configOf _vehicle >> "selectionClan");
|
|
|
|
if !(_selectionClan in selectionNames _vehicle) exitWith {
|
2023-07-23 23:23:13 +00:00
|
|
|
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);
|
2022-09-01 17:44:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
TRACE_1("replacing clan logo with empty texture",_vehicle);
|
|
|
|
_vehicle setObjectTextureGlobal [_selectionClan, "#(argb,1,1,1)color(0,0,0,0)"] // return
|