Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → How to find when an actor hits a wall
How to find when an actor hits a wall
2001-09-25, 12:21 PM #1
I'm still working on getting an actor, used in place of a projectile, to explode when it hits a wall(I am using an actor as projectile so that it can be killed by laser bolts). The problem is that I can't find when the actor is touching a wall.

I have tried creating the explosion when the actor's speed is less than some number, but that won't work because the actor may hit a wall and not slow down that much and because the actor might slow down and not be hitting a wall.

I also tried firing a projectile in front of the actor-proj and measuring the distance between it's creation and removed positions. That didn't work because the distance didn't always give me reasonable numbers(?) and since the projectiles have to have a collide of 1 to hit the wall, they will hit the target that the actor-proj is aiming for.

Anyone have something I can try?

------------------
Fiction must be more realistic than truth or no one will believe it.

[This message has been edited by SaberMaster (edited September 25, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-09-25, 12:49 PM #2
you could try attatching a projectile to the actor , that is just a dummy projectile , but that dummy projectile , is like a ussaul projectile and under explsion you can put another template so it will be called when it's hits a wall , a cog attatched to that could then send a message back to the actor , saying it has touched a wall.

Sorry for the dodgey explaining , i'm rushing to go out , bye.
2001-09-25, 1:34 PM #3
That sounds like a good idea, and fairly simple...

Attach a dummy thing (a ghost even?), and when IT hits the wall, send a trigger to your actor cog to explode it...
2001-09-25, 2:35 PM #4
Simple, use a touched message in the actor cog that calls the explosion routine.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2001-09-26, 11:44 AM #5
Thanks, Siefer, I'll try that. [http://forums.massassi.net/html/wink.gif]

------------------
Fiction must be more realistic than truth or no one will believe it.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-09-26, 2:00 PM #6
Np, Emon ... a touched message will not be called when it touches a wall, rather when it touches another thing.
2001-09-27, 10:44 AM #7
Works fine. [http://forums.massassi.net/html/biggrin.gif] Thanks again. [http://forums.massassi.net/html/wink.gif]

------------------
Fiction must be more realistic than truth or no one will believe it.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!