A_SprayDecal
Jump to navigation
Jump to search
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, TranslationID translation = 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
- The offset from the caller's position. If no offset is passed, uses the center of the caller.
- vector3 direction
- The direction to test for surfaces. If none is passed, the caller's angle and pitch are used.
- bool useBloodColor
- If this is
true
, the sprayed decal is shaded to match the calling actor's blood color, as stored in the actor'sbloodTranslation
field. Default isfalse
.
- 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 is0
.
- TranslationID translation (development version 864fe1f only)
- The translation to use for recoloring the decal. Default is
0
.
Examples
![]() |
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. |