How to determine if entity is hidden or not

Blitz3D Forums/Blitz3D Beginners Area/How to determine if entity is hidden or not

Shifty Geezer(Posted 2004) [#1]
Is there a function to reutn whether an entity is visible used in conjunection with HideEntity() and ShowEntity()? The closest I could find in the manual was EntityVisible() but that returns whether the entity is visible to the camera, not whether or not it's been turned off.


Ricky Smith(Posted 2004) [#2]
No command as such but you could set a flag when an entity is hidden or shown and then check this value. If the entity is a type you could add a field for a visible flag.


Gord(Posted 2004) [#3]
Yes I use flags all the time for example
HideEntity ship
shiphidden = true
if shiphidden then ...do something


jhocking(Posted 2004) [#4]
Can you see it? If not, it's hidden!