From ZDoom Wiki
Jump to: navigation, search

72:ThrustThing (angle, force, nolimit, tid)

  • angle: Byte angle to thrust the thing
  • force: The force, in units per tic (1 second = 35 tics), to apply to the thing.
  • nolimit: Must be set to 1 if the thrust is larger than 30
  • tid: TID of the thing to thrust. If this is 0, the activator of the special is affected itself.

Thrusts the thing with the given tid in the direction specified by angle with the given force. Can be easily combined with ThrustThingZ.

ThrustThing can also be used to thrust based on actor angle.

ThrustThing(angle*256/360, 0, 0, 0)
ThrustThing(angle*256/360+64, 0, 0, 0)

The first line will thrust in the direction the actor is facing. Adding +64, +128, or +192 will thrust to the right, backwards, or left, respectively.


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 contibutions are greatly appreciated.

External links