Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,388 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
P_A_T_H_S #129055
05/10/07 09:29
05/10/07 09:29
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
Small problem here.
Well i have a path code. It works very well until I want to make the enemy walk back the same path. How to do that?
Please help people.


Re: P_A_T_H_S [Re: MTD] #129056
05/10/07 09:49
05/10/07 09:49
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
I have two ideas...
1. create a thin elipsoid path and enemy will go around
2. not sure but maybe will work
if(node == last_node) {node = path_nextnode(my,node,-1);}


Last edited by tompo; 05/10/07 09:57.
Re: P_A_T_H_S [Re: MTD] #129057
05/10/07 10:02
05/10/07 10:02
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I've made a changePath demo, you can download it here

Re: P_A_T_H_S [Re: tompo] #129058
05/10/07 10:03
05/10/07 10:03

A
Anonymous
Unregistered
Anonymous
Unregistered
A



store the paths nodes in an array and you can all you need (forward/backward/jump to node)

mercuryus

Re: P_A_T_H_S [Re: tompo] #129059
05/10/07 10:04
05/10/07 10:04
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
Well your idea is good but i need only one path , because the main idea is - when the enemy see the player, he runs back the same path to alert the base.

Re: P_A_T_H_S [Re: MTD] #129060
05/10/07 10:07
05/10/07 10:07
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
O.K. will try...

Re: P_A_T_H_S [Re: MTD] #129061
05/10/07 10:22
05/10/07 10:22
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
WHAT IS - path_nodepos ?
AND WHAT DOES IT DO ?
path_nodepos(0,0,0);???

Re: P_A_T_H_S [Re: MTD] #129062
05/10/07 10:26
05/10/07 10:26

A
Anonymous
Unregistered
Anonymous
Unregistered
A



path_nodepos didn't exists - it's a bug in the helpfile.

use path_getnode to get the nodes position.

Re: P_A_T_H_S [Re: ] #129063
05/11/07 10:07
05/11/07 10:07
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
The next problem is - how to make a new path scan code?
When i want to search a new path it makes strange things.
In the begin enemy walks it's path normal, but when he comes to the end he can't find another path? Let's say when the node 6 is taken then search a new path-but it didn't work...
Whats the problem ? ? ?
Script-
if(node == 6)
{
result = path_scan(pedalis2,pedalis2.x,pedalis2.pan, VECTOR(360,180,1000));
if(result == 0){error("[censored]");return;}
else{error("path_found");}
node = 1;
path_getnode(my,node,node_pos,null);
}

Re: P_A_T_H_S [Re: MTD] #129064
05/11/07 10:22
05/11/07 10:22
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
O.K.
Needed just - path_scannode(ENTITY*,var index);
Thats all.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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