mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
681 B
Plaintext
27 lines
681 B
Plaintext
|
#include "script_component.hpp"
|
||
|
/*
|
||
|
* 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 {
|
||
|
TRACE_2("vehicle does not have 'selectionClan' selection",_vehicle,_selectionLogo);
|
||
|
};
|
||
|
|
||
|
TRACE_1("replacing clan logo with empty texture",_vehicle);
|
||
|
_vehicle setObjectTextureGlobal [_selectionClan, "#(argb,1,1,1)color(0,0,0,0)"] // return
|