Author Topic: Detecting if a player is above a brick  (Read 542 times)

Is there any way to detect if there is a player above a brick within a certain distance?

Shoot a raycast upwards from the brick.

Shoot a raycast upwards from the brick.
How? I only know how to shoot raycasts from players.

Also, quick question: How do I set a person's camera into the mode that it's like in admin mode?

Also, quick question: How do I set a person's camera into the mode that it's like in admin mode?
%client.setcontrolobject(%client.camera);[%client.camera.setfreemode();]No sure if you need 2nd part



But how do I get the dimensions to go above the brick?
What do you mean? It automatically creates a trigger for the entire brick.

%client.setcontrolobject(%client.camera);[%client.camera.setfreemode();]No sure if you need 2nd part

camera::setFreeMode doesn't exist, it's camera::setFlyMode. Also yes, you need it.

What do you mean? It automatically creates a trigger for the entire brick.
I want the trigger to extend to above the brick also so it will not detect them leaving if they jump.


camera::setFreeMode doesn't exist, it's camera::setFlyMode. Also yes, you need it.
%client.setcontrolobject(%client.camera);[%client.camera.setfreemode();]No sure if you need 2nd part
Thanks Port and Mold.
« Last Edit: September 01, 2012, 11:41:41 AM by jes00 »

I want the trigger to extend to above the brick also so it will not detect them leaving if they jump.
You would need to change the polyhedron.

You would need to change the polyhedron.
I assume that since he didn't know that he doesn't know how to change the polyhedron to the correct shape.

I assume that since he didn't know that he doesn't know how to change the polyhedron to the correct shape.
I didn't really know either, that's why I didn't say. I think you would increase the 1 though.

You don't need to change the polyhedron use setScale "1 1 x"