A_SprayDecal

From ZDoom Wiki
Jump to navigation Jump to search

Actor

void A_SprayDecal (String name, double dist = 172) - Decorate version
void A_SprayDecal (String name, double dist = 172, vector3 offset = (0, 0, 0), vector3 direction = (0, 0, 0), bool useBloodColor = false, color decalColor = 0) - ZScript version

Usage

Generates the specified decal on a nearby wall. The calling actor needs to be facing the wall in order to successfully generate the decal.

Parameters

  • String name
The name of the decal to generate as defined in DECALDEF.
  • double dist
The maximum distance in map units the calling actor can stand from the wall and still successfully generate the decal. Default is 172.0.
  • vector3 offset
(Need more info)
  • vector3 direction
(Need more info)
  • bool useBloodColor
If this is true, the sprayed decal is shaded to match the calling actor's blood color, as stored in the actor's bloodTranslation field. Default is false.
  • color decalColor
The desired color of the decal. Due to how decals work in the engine, the decal is only properly colorized if the graphic is grayscaled. This parameter takes precedence over useBloodColor. Default is 0.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.