<aside> ⚡ script "core_weaponcolor" (int weap, int flags, int teamweap)
</aside>
This script can be called in the Ready state of weapons to play a weapon selection noise and to change the color of the player using a translation created by [CreatePlayerTranslation](<https://mm8bdm.notion.site/CreatePlayerTranslation-d06d89f15beb41879070dac7e51f1593>).
weap: Int - The translation ID to swap the player to use.<aside>
💡 Note: CLR_PREVCOLOR is a special constant which can be used for this parameter to not change the user’s color. Useful if you only need a weapon swap noise!
</aside>
flags: Int - A set of flags which can be added to change the behavior of this script. Allowed flags include:
CLRF_SILENT: Disables the weapon swap sound.teamweap: Int - The starting translation ID of 4 consecutive translations, one for each of the 4 teams. For example, the default value for this parameter is TCLR_DEFAULT, which is 230, because TCLR_LIGHT is 230, TCLR_WILY is 231, TCLR_COSSACK is 232, and TCLR_KING is 233.
<aside>
💡 Note: This parameter is what facilitates team charge color animations, so check out [Team Colors](<https://mm8bdm.notion.site/Team-Colors-679c2e935457413dba70d2375689b089>) for more info.
</aside>
Ready:
DRIL D 0 ACS_NamedExecuteWithResult("core_weaponcolor", CLR_DRILLBOMB)
DRIL D 1 A_WeaponReady
Goto Ready+1