Hey, I need to do a couple of somewhat simple things but don’t know Python at all. It’s lame but I’m asking if anyone would be willing to write Python scripts for the following things:
A script that sets the position of an object as [0,0,0] when an animation (action) begins.
My game will have animations named suchas
off the top of my head
cont = GameLogic.getCurrentController
own = cont.getOwner
and attach that to the logic brick that starts the animation.
here is a location of how to use python in the game engine and all the commands.
You forgot the parenthesis after getCurrentController()
and setPosition([0,0,0]) requires a list
Other than that, it should work.