<aside> ⚡ script "core_weaponcolor" (int weap, int flags, int teamweap)

</aside>

Usage


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>).

Parameters

<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>

<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>

Example


Ready:
	DRIL D 0 ACS_NamedExecuteWithResult("core_weaponcolor", CLR_DRILLBOMB)
	DRIL D 1 A_WeaponReady
	Goto Ready+1

See Also


core_chargecolor