Jump to content
Sign in to follow this  
panicsferd

Is there a way to color a aaf buzzard completely black?

Recommended Posts

I am currently working on a mission that involves around the player having an objective to rig a enemy officers personal plane and I would like it if that plane could be colored black instead of being the default AAF camo scheme?

 

I have tried using a code that I had before that worked to change the color of cars and the like, but for the plane it only seems to color the middle portion, the wings still have the AAF camo scheme.

 

The code i'm talking about is this:

 

cfgfunctions.hpp

class TAG
{
    tag = "TAG";
    class functions
    {
        file = "functions";
        class colorSUV {description = "Color vehicles different colors"; preInit = 1;};
		class colorMH9 {description = "Color vehicles different colors"; preInit = 1;};
            
    };
};

fn_colorSUV.sqf

_vehicle = [_this, 0, objNull, [objNull]] call BIS_fnc_param;
_color = [_this, 1, "BLACK", [""]] call BIS_fnc_param;

    _colorCode = switch toUpper(_color) do {
        case "TAN": {[0,"#(argb,8,8,3)color(0.8,0.7,0.5,0.2)"]};
        case "BLACK": {[0,"#(argb,8,8,3)color(0,0,0,0.6)"]};
        case "PINK": {[0,"#(argb,8,8,3)color(1,0.75,0.84,0.2)"]};
    };

_vehicle setObjectTexture _colorCode;  

In the vehicles init field:

_null = [[this, "BLACK"], "TAG_fnc_colorSUV", true, true] spawn BIS_fnc_MP;

I hope someone can help me on this so I can continue working on my mission.

Share this post


Link to post
Share on other sites

You'd want to color both of the sections.

 

Add this line under the matching BLACK line:

case "BLACKWING": {[1,"#(argb,8,8,3)color(0,0,0,0.6)"]};

Then call this as well:

_null = [[this, "BLACKWING"], "TAG_fnc_colorSUV", true, true] spawn BIS_fnc_MP;
  • Like 1

Share this post


Link to post
Share on other sites

 

You'd want to color both of the sections.

 

Add this line under the matching BLACK line:

case "BLACKWING": {[1,"#(argb,8,8,3)color(0,0,0,0.6)"]};

Then call this as well:

_null = [[this, "BLACKWING"], "TAG_fnc_colorSUV", true, true] spawn BIS_fnc_MP;

Thanks a ton, it works.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×