CheckSight: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{ACSFunction|description=Checks if there is a line of sight between two actors. |usage=''boolean'' '''CheckSight'''(''int'' ''tid1'', ''int'' ''tid2'', ''flags'') |parameters= *''tid1'': TID of first actor *''tid2'': TID of second actor *''flags'': reserved, must be 0}}") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
*''tid1'': [[TID]] of first actor | *''tid1'': [[TID]] of first actor | ||
*''tid2'': [[TID]] of second actor | *''tid2'': [[TID]] of second actor | ||
*''flags'': reserved, must be 0}} | *''flags'': reserved, must be 0 | ||
|notes=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. | |||
|id=-35}} | |||
Latest revision as of 02:06, 23 April 2026
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]
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.