<aside> 📦 DTADD.acs

</aside>

<aside> âš¡ int CreatePlayerTranslationGlow(int id, int cyan, int blue, int black)

</aside>

Usage


This function acts as a shorthand, wrapper for the Zandronum function [CreateTranslation](<https://zdoom.org/wiki/CreateTranslation>). However, it also logs the ID being used into a table for the debug functions, [core_checktranslation](<https://mm8bdm.notion.site/core_checktranslation-b2f12d896d2245c1953d85748824935a>) and [core_logtranslations](<https://mm8bdm.notion.site/core_logtranslations-848d101d944b4b719bf3d029bdf244e2>).

Parameters

<aside> 💡 Note: The RGB triplet being referred to here is an integer that has been packed with bytes such that the first byte is a 0-255 red value, the second byte is a 0-255 green value, and the third byte is a 0-255 blue value.

An integer such as this can be made using the rgbTriplet function from COLOFUNC.acs or it can be done using the functions and scripts noted in the [Pack Bytes and Shorts](<https://mm8bdm.notion.site/Pack-Bytes-and-Shorts-16ba96bd2e1e45d2ba5534fb8bc34e32>) page.

</aside>

Return Value

Example


These are the translations defined for MM8BDM’s Wild Coil.

CreatePlayerTranslation (CLR_WILDCOIL, 109, 238);
CreatePlayerTranslationGlow (CLR_WILDCOILCRG1, 109, 238, 41);
CreatePlayerTranslationGlow (CLR_WILDCOILCRG2, 238, 0, 109);
CreatePlayerTranslationGlow (CLR_WILDCOILCRG3, 0, 109, 238);

See Also


CreatePlayerTranslation

DefineTranslation