03.01.2018, 15:23
You have to modify the Z axis to make the object move but also keep in your mind about the default object rotations! Moving objects from wrong rotations cause them to teleport to their new position rather than actual movement like you want to see (Note: Changing z axis don't affect it)
EDIT: you need to make the variable global if you want have one object which changes it's position when you execute the command.
EDIT: you need to make the variable global if you want have one object which changes it's position when you execute the command.