JumpIfTargetInSight
From Eternity Wiki
Jump to navigationJump to search
Description
Jump to a state if caller's target is in line of sight.
Usage
A_JumpIfTargetInSight(state, field_of_view)
Parameters
- state: frame to jump to
- field_of_view: field of view relative to calling actor's angle to check for target in. If 0, it will be in all directions.
Examples
No examples given.
Notes
This was introduced by MBF21 and is similar to ZDoom's JumpIfTargetInLOS, but with fewer capabilities: it doesn't work with player weapon frames and it can't use a seeking projectile's target as option (for that, use JumpIfTracerInSight.