≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How do I get access to array from a different function?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]dekon_17[/b] wrote: So, recently I was working on some sort of pathfinding. Turns out, after (mostly) a single day of having no life, I was able to do this! Sure, it uses the scene nodes as a path points (I have no idea how to call these), but hell, I think it is insane that I've managed to do this. Now I have to do everything else for my AI, since I only made a pathfinding. But here's the problem: to generate a path, behavior uses a single function. It looks kinda like that: [code]PathFind (Pos, PlrPos, this.Folder); // this part lies in a prototype.onAnimate function, calling the function named as "PathFind"[/code] [code]function PathFind (Pos, PlrPos, Folder) // this one is a standart function[/code] And the problem is that I don't know how do I take the resulting array (which contains the coordinates of points) from this function to the behavior. Things like "this.Path" didn't really worked. How do I get access to it then?[/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