FindTracer

From Eternity Wiki
Revision as of 13:50, 20 October 2024 by Printz (talk | contribs) (Created page with "{{codepointer|description=Search for a valid seek target, if the calling actor doesn't already have one. Particularly useful for player projectiles. |usage='''A_FindTracer'''(''field_of_view'', ''search_distance'') |parameters= *''field_of_view'': the field of view relative to calling actor's angle to search for targets in. Default: 360 degrees (all around) *''search_distance'': distance to search in map blocks (of 128 units each). Default: 10 |notes=This will prefer aim...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Search for a valid seek target, if the calling actor doesn't already have one. Particularly useful for player projectiles.

Usage

A_FindTracer(field_of_view, search_distance)

Parameters

  • field_of_view: the field of view relative to calling actor's angle to search for targets in. Default: 360 degrees (all around)
  • search_distance: distance to search in map blocks (of 128 units each). Default: 10

Examples

No examples given.

Notes

This will prefer aiming for targets closer to its current angle, then fan out as necessary until field_of_view is reached. It will avoid locking on the shooter or allied actors.

See also