Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Q: Paths and skills #113738
02/25/07 00:28
02/25/07 00:28
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

The question is about the skills that are available with the nodes and how to apply these skills in the path.

In the manual we find:

path_getnode(ENTITY*,var node, VECTOR* pos, var* skills )

As example we find:

path_getnode(my,1, temp, my.skill1 );

The node has a skill (1 to 6) why do you write my.skill1 and not node.skill1 ?
How can the Entity pick up skill1 from the node?
Also :
The “var* skills” is a vector and the debugger asks for a vector
I wrote the following:
path_getnode(my ,node, pos_node, vector(1,0,0));
The debugger accepted this.

What do I replace “VAR* skills” with?
How do I use the information that I have placed in the node skill 1 in WeD?
(I numbered all the nodes at skill one with the same number that the node has.)


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Q: Paths and skills [Re: Ottawa] #113739
02/26/07 16:51
02/26/07 16:51
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
See: http://manual.conitec.net/apath_setnode.htm

"skills" is a var* pointer to an array of at least 6 vars. It receives the node skills. So you can either self-define it (like var test[6];) or use any entity skill from skill1 up to skill94. Entity skills are an array of 100 vars, so in the example six of them (skill1..skill6) get filled with the node skills.

Passing a vector, as in your example above, will cause a crash. A vector is an array of only 3 vars, so the function would write its last 3 skills into memory where they don't belong.

Re: Q: Paths and skills [Re: jcl] #113740
02/26/07 19:34
02/26/07 19:34
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Thanks jcl


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1