A_SetTranslucent

From ZDoom Wiki
Jump to: navigation, search

A_SetTranslucent (float alpha, int mode)


Sets translucency for the calling actor.

There are 3 modes:

  • 0: normal translucency blending. This mode combined with an alpha setting of 1.0 will make the actor opaque.
  • 1: additive blending.
  • 2: Doom's Spectre's fuzz effect. Alpha has no meaning with this setting.


alpha specifies the amount of visibility and is a value between 0.0 (not visible) and 1.0 (fully visibile).

Examples

This rocket variant displays its explosion with additive translucency. Slight visual enhancement.

actor PrettyRocket : Rocket replaces Rocket {
  states {
  Death:
    MISL B 0 A_SetTranslucent (0.75, 1)
    goto Super::Death
  }
}
Personal tools
Namespaces
Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox