The tsprite struct triggered only by drawn sprites when 16 has been added to the mdflags member of the corresponding sprite in the game world. Drawn sprites are accessed through the tsprite struct, which has its own members separate from the regular actor struct. Members of the tsprite struct are similar to members of the regular sprite array, but they begin with “tspr”. See EVENT_ANIMATESPRITES.
Syntax:
<get/set>tspr[<sprite id>].<member> <gamevar>
<get/set> - gettspr to set the gamevar <gamevar> to the value of <member>. settspr to set the value of <member> to the gamevar <gamevar>.
<sprite id> is the reference number for a sprite. Use THISACTOR to set <sprite id> to the current actor's reference number.
<member> is the name of the member of the struct you want to set or get.
<gamevar> is the gamevar to get or set the value of.
Here is the list of the members for the tsprite struct: