How to make impassible physical zone
by Robert Brower · in Torque Game Engine · 11/02/2002 (8:19 pm) · 6 replies
I've been playing with phyzical zones. Is there a way to set the properties on a physical zone so that noone can walk through it?
#2
If you think this will be helpful, I'll load it on another site and you can have a look at it. It works by restricting a player to a terrain texture, but it can be changed so to prevent the player from entering terrains with specified textures.
James
11/03/2002 (10:09 am)
Some weeks I posted a code snipit resource which restricted a player to a specified terrain texture. Unfortunately that post has has not yet been moderated and added to the list on the right, and with IGC it may still be some time before it appears.If you think this will be helpful, I'll load it on another site and you can have a look at it. It works by restricting a player to a terrain texture, but it can be changed so to prevent the player from entering terrains with specified textures.
James
#3
That sounds like an interesting code snippet to be sure. You could post a direct link to your submission here if you'd like (found in your GG member profile). Otherwise, that would be great if you could post an outside link.
I too have some resources waiting to be approved. But I understand where the GG guy's time has been going :o)
- LightWave Dave
11/03/2002 (12:12 pm)
Greetings James!That sounds like an interesting code snippet to be sure. You could post a direct link to your submission here if you'd like (found in your GG member profile). Otherwise, that would be great if you could post an outside link.
I too have some resources waiting to be approved. But I understand where the GG guy's time has been going :o)
- LightWave Dave
#4
Here is the link, I hope you can access it.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3403
James
11/04/2002 (9:25 am)
Hi Dave!Here is the link, I hope you can access it.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3403
James
#6
11/09/2002 (9:03 am)
I was working on doors. I was going to use a PZ to keep you from going through the door which has no collision box. I got it working by using a door blocker object instead, which I created. This is basically a invisible object with a rectangular collision mesh. So now in my game when you walk up to a door, and press the U key on the keyboard, the door will open and play an open sound if it is not locked. If it is locked, the server checks your inventory to see if you have the corresponding key to open it and then opens it and plays an unlock and open sound or just plays a locked sound. The terrain restriction stuff sounds useful though.
Associate Ron Yacketta
-Ron