FindTracer: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(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...") |
(No difference)
|
Latest revision as of 14:50, 20 October 2024
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.