I'm trying to teleport people around and I'm getting some pretty weird
results.  One thing is a weapon that makes you disappear, wait for a couple
of seconds and then a fireball shoots out a little bit in front of where you
were standing when you disappeared, and when the fireball stops, you
reappear at the end.  The problem is that sometimes you will get stuck in a
wall.  How can I keep this from happening?  Because I don't know how to keep
people from getting stuck in walls, I copied a teleport function from some
code on the web.  Their idea was that you could drop a teleport spot with an
impulse and when you get trapped by somebody and are about to go down, you
go to this teleport spot.  I made it so that doing the fireball thing will
drop a teleport spot where you are standing, and then if you get stuck in a
wall, you can teleport back to where you were first standing.  The problem
is that moving the person to self.origin doesn't take the person to
self.origin.  Where you end up is usually hell and gone from where
self.origin should have been.  Should I post the code here so you can tell
me what I did wrong?  If I can find out how to keep people from being stuck
in walls, I won't need the teleporter anyhow.  This really shouldn't be that
difficult :P so maybe I'm being a ninny.

 

_______________________________________________
AGRIP-discuss mailing list
[email protected]
http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss

Reply via email to