<aside> 📦
DTADD.acs
</aside>
<aside> âš¡ int GrabTeamRGBTriplet(int team, int col)
</aside>
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>)
.
team
: Int - Team to grab the RGB triplet from.col
: Int - The color to grab from a set of colors in a team color. Valid values include:
DTADD_COLOR_LIGHTER
DTADD_COLOR_SECONDARY
DTADD_COLOR_PRIMARY
DTADD_COLOR_DARK
Returns the selected RGB triplet for the chosen team.
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
);
}