JumpIfTargetInSight: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{codepointer|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. |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 an...") |
(No difference)
|
Revision as of 14:59, 20 October 2024
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.