I have studied the forums for some simple code for this but cannot really find a good example for what I need. Theres some pretty clever stuff there but maybe too much for my simple requirements.
I am NOT looking to do waypoint code so dont need anything too scaleable.
Suppose I have six cubes placed around my level.
When a trigger action occurs I want to move my player to the nearest cube. Its as simple as that. Only needs to calculate on X and Z axis. Y is not important.
Any examples would be great. Thanks in advance.
I am NOT looking to do waypoint code so dont need anything too scaleable.
Suppose I have six cubes placed around my level.
When a trigger action occurs I want to move my player to the nearest cube. Its as simple as that. Only needs to calculate on X and Z axis. Y is not important.
Any examples would be great. Thanks in advance.