A_JumpIfMasterCloser

From ZDoom Wiki
Jump to: navigation, search

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

Jumps the given offset forward or to the given state if the distance to the master is lower than the given value.

Example

If this ZombieMan's master is away from him, the zombieman will forget it.

actor TraitorZombieman : ZombieMan
{
    States
    {
    See:
      POSS A 0 A_JumpIfMasterCloser(1024, 2)
      POSS A 0 A_RearrangePointers(AAPTR_DEFAULT, AAPTR_NULL, AAPTR_DEFAULT)
      POSS AABBCCDD 4 A_Chase
      Loop
    }
}
Personal tools
Namespaces

Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox