<aside> 📦 DTADD.acs

</aside>

<aside> âš¡ int GrabTeamRGBTriplet(int team, int col)

</aside>

Usage


Intended to be used alongside [RegisterTeamColorDef](<https://mm8bdm.notion.site/RegisterTeamColorDef-7284a305a4f7418baeea34362aad0fdb>). This function allows you to get one of the RGB triplets for a team, perfect for passing to [CreatePlayerTranslation](<https://mm8bdm.notion.site/CreatePlayerTranslation-d06d89f15beb41879070dac7e51f1593>) and [CreatePlayerTranslationGlow](<https://mm8bdm.notion.site/CreatePlayerTranslationGlow-6f7b0592d0944330b7a030d6e98d07b6>).

Parameters

Return Value

Returns the selected RGB triplet for the chosen team.

Example


If registered using [RegisterTeamColorDef](<https://mm8bdm.notion.site/RegisterTeamColorDef-7284a305a4f7418baeea34362aad0fdb>), this script would create a set of team colored translations that add a white outline to the default team color translation.

script "example_outlineteamcolors" (int team, int refTeam) CLIENTSIDE {
    CreatePlayerTranslationGlow(
        TCLR_DEFAULT+team,
        GrabTeamRGBTriplet(refTeam,COLOR_SECONDARY),
        GrabTeamRGBTriplet(refTeam,COLOR_PRIMARY),
				4
    );
}

See Also


Team Colors

RegisterTeamColorDef