How do I get triggers to stop the player from moving on entering
by Franck · in Torque Game Engine · 06/23/2008 (4:53 pm) · 7 replies
I want my player to stop when he enters a trigger so I set his velocity to zero but I can run right through the trigger and he only becomes immobile when I let go of the keys even if he ran outside of the trigger.
To remedy this I created a barricade big enough so he couldn't walk over it on the edge of the trigger. This creates a problem though because the enemies that spawn from the trigger (that's suppose to prevent the player from walking but still aim his gun) can't see him so they just stand still, letting me kill them.
I hope I explained that well enough and I hope this is the right forum to post this. Thanks.
To remedy this I created a barricade big enough so he couldn't walk over it on the edge of the trigger. This creates a problem though because the enemies that spawn from the trigger (that's suppose to prevent the player from walking but still aim his gun) can't see him so they just stand still, letting me kill them.
I hope I explained that well enough and I hope this is the right forum to post this. Thanks.
#2
I actually did mess with a physicalzone before (without researching it...) and it didn't seem to help. With your suggestion I researched it and now I stop in the trigger and everything's great except the aiplayers can't see me apparently. I even deleted the physicalzone and there's nothing between us, I'm just standing in a trigger and they still don't aim at me.
This is strange because the first set of aiplayers that spawn to attack me, in the first room I start in, aim and function properly with me only in a trigger. I don't know why the second set of aiplayers that spawn in the second room (they spawn when I enter the trigger I now successfully stop in) don't see the player.
06/23/2008 (6:04 pm)
Thanks for the reply. I actually did mess with a physicalzone before (without researching it...) and it didn't seem to help. With your suggestion I researched it and now I stop in the trigger and everything's great except the aiplayers can't see me apparently. I even deleted the physicalzone and there's nothing between us, I'm just standing in a trigger and they still don't aim at me.
This is strange because the first set of aiplayers that spawn to attack me, in the first room I start in, aim and function properly with me only in a trigger. I don't know why the second set of aiplayers that spawn in the second room (they spawn when I enter the trigger I now successfully stop in) don't see the player.
#3
Two-Sided
Two-Sided shoot-through-able
One-Way
One-Way Shoot-through-able
Edit->Whoops, didn't see that you solved your problem, sorry.
06/23/2008 (7:35 pm)
I can't remember what it's called, but there is a resource that comes with some really cool collision blocks. It comes with four types:Two-Sided
Two-Sided shoot-through-able
One-Way
One-Way Shoot-through-able
Edit->Whoops, didn't see that you solved your problem, sorry.
#4
06/24/2008 (6:11 pm)
That resource sounds like it could come in handy. If you happen to remember what it's called I'd like to know please.
#5
06/24/2008 (6:13 pm)
There's also this resource (by me!), which lets you make various cylindrical-shaped physical zones.
#7
06/24/2008 (9:02 pm)
Thank you both for the resources you have provided.
Associate Orion Elenzil
Real Life Plus