Jump to navigation Jump to search
|Note: This feature is for ZScript only.|
bool CheckIfInTargetLOS([double fov[, int flags[, double dist_max[, double dist_close]]]])
Checks if the Actor is in line of sight of its target.
- fov - 0 by default. If greater than 0, check if the Actor is within the specified field of view of its target.
- flags - 0 by default. Sets the the flags for the check.
- dist_max - 0 by default. If greater than 0, sets the range the Actor must be in.
- dist_close - 0 by default. If greater than 0, sets the max distance that the JLOSF_CLOSE* flags will be used.
Returns true if the Actor was in line of sight of its target.
|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.|