A_JumpIfCloser

From ZDoom Wiki
Jump to: navigation, search

A_JumpIfCloser (int distance, int offset)
A_JumpIfCloser (int distance, str "state")

Jumps the specified amount of states forward if the distance to the target is lower than the given value. For weapons and inventory, jumps if the target in the player's crosshair is closer than the given value.

Example

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.
Personal tools
Namespaces

Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox