hello there, i need help making a teleporter, i need to could teleport to another place on the map, without destroying him, i got a script but i couldnt get i working
here is the script i tried to use
cont = GameLogic.getCurrentController()
own = cont.getOwner()
warppoint = GameLogic.getCurrentScene().getObjectList()[“OBemp”]
warp = cont.getSensor(“warp1”)
warpto = warppoint.getPosition()
if warp.isPositive():
own.setPosition(warpto)
please if u can get this script working, or can make your own, please send it to me… or just tell me how to do it
You’re using Blender 2.49, huh? Are there any errors in the console? Also, I think Tora means objects[‘OBemp’], not objects() (it’s not a function). Other than that, his suggestions will help, though I’m not exactly sure what the problem is without seeing the console’s error - what does that say?
Hmm, 2.49 scripts (like the one you have) don’t work in 2.57.
See if you can find a 2.57 script for the same thing. Or you can do the cheating way, using ipo’s. That’s what I do and it works fine.