I think this would be very useful in many missions, having a objectInFOV command which returns boolean if object is in the field of view of the player or not.
- Legacy ID
This command would of course only work local.
Adding to this, I did some more testing with worldToScreen, and it seems quite inaccurate. It still gives back a position even though the object is not visible anymore on screen.
It seems like you need the screen to be at least [x] degrees away from the object before it gives back an empty position.
I'll create a new issue for this though.
Seems to be because of safezones. So this new command would still be useful to actually check if an object is in view or not.
If such command is created it should return value from 0 to 1 instead of boolean. 1 is when the object is in the centre of screen and 0 is when it is beyond FOV (i.e. the edge of bounding box is not on the screen)