Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
For some reason, when I run this code the AI keeps walking to my starting position. The new position does not update, it should walk towards my character? @Niko @niko setInterval(function() { var s = ccbGetSceneNodeFromName("Camera1"); var position = ccbGetSceneNodeProperty(s, "Position"); //alert("The cube is at " + position[0]); var s = ccbGetSceneNodeFromName('Zombie1'); ccbAICommand(s, 'moveto', new vector3d(position[0], position[1], position[2])); }, 1000); |
||||
|
Resolved... http://www.ambiera.com/forum.php?t=5093 |
||||
|
Awesome, Idk code at all so this will help in the future, thanks for sharing |
|