CheckSight

From Eternity Wiki
Revision as of 02:06, 23 April 2026 by Printz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Checks if there is a line of sight between two actors.

Usage[edit]

boolean CheckSight(int tid1, int tid2, flags)

Parameters[edit]

  • tid1: TID of first actor
  • tid2: TID of second actor
  • flags: reserved, must be 0

Return value[edit]

Examples[edit]

No examples given.

Notes[edit]

This uses the same line of sight rule as the one for monster sights, explosion rays etc. If any of the two actors is completely gone from the game, the function returns 0. It will still return 1 if there's a line of sight if they still exist as corpses or in any way still present in the game.

This function's identification in zspecial.acs is: -35.

See also[edit]