Scrap/Random Hacks/weird.txt

13 lines
324 B
Text
Raw Normal View History

2015-03-01 11:03:11 -06:00
from direct.interval.IntervalGlobal import Func, Wait, Sequence
def resetPos():
Me = base.localAvatar
base.localAvatar.d_setPos(Me.getX(), Me.getY(), Me.getZ())
def recursePos():
res = Sequence()
res.append(Func(resetPos))
res.loop()
recursePos()
base.cr.wantUpdateCalls = True
http://www.depython.net/