IsVisible
Jump to navigation
Jump to search
Note: This feature is for ZScript only. |
native bool IsVisible(Actor other, bool allaround, LookExParams params = null)
Usage
Checks if the specified actor is visible to the calling Actor. Checks similarly to A_Look's visual checking but does not modify the Actor in any way.
Parameters
- Actor other
- The actor to check sight of.
- bool allaround
- If true and params is not specified, look all around the Actor similar to the LOOKALLAROUND flag.
- LookExParams params
- null by default. Allows passing a LookExParams struct, similar to A_LookEx, to determine minimum distance, FOV and other values.
Return value
Returns true if the other actor is visible.
Examples
![]() |
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated. |