FindTracer

From Eternity Wiki
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