Spriteflags

From EDukeWiki
Revision as of 23:34, 19 February 2020 by Fox (talk | contribs)
Jump to navigation Jump to search

spriteflags <picnum> <value>

spriteflags <value>

The first form is used outside of an actor code. It will set special flags to a tile. The values are the same as gameflags.

The second form is used inside of an actor code. It will set special flags for a sprite that exists in the map. The values are the same as htflags.

At game time, the per-tile value is XORed with the per-sprite value, i.e. the setting of one reverses the other.

The per-tile flags are also set by useractor. Meaning that the spriteflags should precede it, otherwise the values will be overwritten.