entity visible

Blitz3D Forums/Blitz3D Beginners Area/entity visible

David(Posted 2004) [#1]
i cant found the function for check entity is visible


GfK(Posted 2004) [#2]
er, tried EntityVisible?


David(Posted 2004) [#3]
no work too

this problems repeat in blitz3d, no basic functions exists


GfK(Posted 2004) [#4]
I don't know what you mean.


Tom(Posted 2004) [#5]
EntityInView (entity,camera)

?


David(Posted 2004) [#6]
entityvisible is for two entities, if the two entities see return true else false, but no work for no check if is visible or no


aCiD2(Posted 2004) [#7]
entityvisible just draws a line from one entity to another, and returns tru if the line isnt broken - you need to use delta yaw if you want to actually 'see' entities


David(Posted 2004) [#8]
i need check if entity is visible or no

example: i load a mesh with children objects, one children is invisible and the others no, i need get the entity invisible, but what is it?


AbbaRue(Posted 2004) [#9]
I used EntityInView for the following code.

If Not EntityInView(Treeb(tt),camera) Then HideEntity Treeb(tt) Else ShowEntity treeb(tt)

It works for me. The second entity is the camera.
Thus is the entity in view.


David(Posted 2004) [#10]
but the object no in view always


Zethrax(Posted 2004) [#11]
"example: i load a mesh with children objects, one children is invisible and the others no, i need get the entity invisible, but what is it?"

Are you talking about the transparency (alpha) state of the entity? If so, I'm not aware of any command that will tell you this. You need to store the transparency state in a variable and set the state using the value in that variable. Then you can simply read the variable to find the transparency state.

If you're talking about visibility picking using the pick commands, then make sure you have the pick mode of your entities set correctly by using 'EntityPickMode'. Remember that you'll also need to set the pick mode of any entities that you want to obscure (block) the picking of your entities, including your game arena meshes.