≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Move AI to Player
Posted by:
(you are not logged in)
Enter the missing letter in: "Int?rnational"
(you are not logged in)
Text:
[quote][b]Zoo[/b] wrote: 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);[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact