Category: Objects
/ Display
Since engine version: 4.9.5.0 CE
(extended in 4.9.6.0 CR)
global func SetObjAlpha(var byAlpha, pObj) { var dwClrMod=GetClrModulation(pObj); if (!dwClrMod) dwClrMod = byAlpha<<24; else dwClrMod = dwClrMod & 16777215 | byAlpha<<24; return(SetClrModulation(dwClrMod, pObj)); }