PDA

View Full Version : Is there a way to determine if a token can be seen in client?



SilentRuin
August 11th, 2021, 14:02
I am basically asking if there is a way to call an imagecontrol function to determine if one tokeninstance can see another tokeninstance with LOS/lighting included in that determination?

This would be a very handy thing to have. No default assumptions on what a coder would want to check against, just a raw tokeninstance (any) to tokeninstance (any) that tells if the two have LOS/lighting visibility between eachother. It could even be incorporated as a simple true/false flag on the distance between two tokeninstance current functions.

Moon Wizard
August 11th, 2021, 15:04
There is no API like that currently. The backend for image control has been under constant flux with release (v4.0.x), then vision/lighting (v4.1.x), then cleanup/rewrite (v4.1.5 beta).

We may do something like this eventually to support some sort of dynamic CT view based on owned/public token visibility.

Regards,
JPG

SilentRuin
August 11th, 2021, 15:24
Perfect as long as its irrespective of PC/NPC in CT - just that its owned, on map, in CT would be fine.