Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import GameLogic as BGL
- cont = BGL.getCurrentController()
- owner = cont.owner
- mouse = cont.sensors["movement"]
- owner.position = mouse.raySource
- #You must have 2 sensors
- #Mouse over any, which needs to match the name in the code - This case "movement"
- #and an Always, both need pulse mode "true"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement