enemy.create(*Game.Objs(UID(2919624831, 1261075521, 753053852, 3651670215))); // create player from object parameters
enemy.pos(Vec(-3, 0,-3));
// THIS WORKS FINE (Uncomment out to see)
//enemy.actionMoveDir(Vec(0, 0, 0));
// THIS ONE NEVER DOES ANYTHING
enemy.actionMoveTo(Vec(0, 0, 0));
I of course added the update call and the drawPrepare call as well so it works, it is just I don't understand how actionMoveTo [/quote]works if you don't have an area and therefor a PathMesh. Can actionMoveTo be used without an Area?
For ease, i have also attached the whole main in a .txt
RE: Question about Chr :: Bool actionMoveTo (C Vec &pos);
The function works by having a PathWorld, in which case it first gets the height of the terrain or the physics object it hits and uses that in the PathWorld to get the closest-to point which is pathable.
RE: Question about Chr :: Bool actionMoveTo (C Vec &pos);
Hi Zervox,
Ahh ok. Sounds like it had no use without a world then. I am perfectly happy using move direction for now. Thanks for your clarification (I should get the source so I can see the inner workings of some of this stuff!!)