DECORATE Variables

From ZDoom Wiki

Jump to: navigation, search

Decorate variables

There are a couple variables you can use for dynamic data in DECORATE definitions. These are:

  • x — The Actor's X position in the world.
  • y — Same, but for Y.
  • z — Same, but for Z.
  • angle — Actor's angle, in degrees
  • momx — Actor's momentum along the absolute X axis.
  • momy — Same, but for Y.
  • momz — Same, but for Z.
  • pitch — The Actor's pitch. (Presumably, in degrees, based on the above.)
  • health — How much health the Actor has left.
  • alpha — The alpha value of the Actor.
  • tid — The Actor's TID
  • tidtohate — TID of the current target (see Thing_Hate et al.)
  • ceilingz — See GetActorCeilingZ
  • floorz — See GetActorFloorZ
  • special — ID of the special currently assigned to this actor
  • args[] — Arguments passed to the thing special
Currently this is the only array property; args[0] through args[4] are valid.
  • waterlevel — How "submerged" the actor is
0: Not submerged at all (e.g. standing on solid ground)
1: Less than half submerged ("ankle deep")
2: At least half submerged ("waist deep")
3: Entirely submerged (completely underwater)

Examples

See Projectile Trap

Note: This article was taken almost directly from A_JumpIf

Personal tools