Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 5,729 guests, and 19 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
moving all path nodes to ground? #228603
09/20/08 21:43
09/20/08 21:43
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi,

what would be the best way to move all path nodes to the level ground after loading the level?

Regards,
Pegamode.

Re: moving all path nodes to ground? [Re: pegamode] #228644
09/21/08 07:59
09/21/08 07:59
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I'm currently using the following code ...

Is there any better way ???

void setPathNodesToGround() {
pathMover = 1;
VECTOR nodePos;
var noderesult = path_scan(current_player,current_player.x,current_player.pan,vector(360,180,10000));
int counter = 1;
while(noderesult > 0) {
path_getnode(current_player, noderesult, nodePos, NULL);
trace_mode = IGNORE_ME + USE_BOX + IGNORE_PASSABLE + IGNORE_PASSENTS;
c_trace(nodePos.x,vector(nodePos.x,nodePos.y,nodePos.z-5000),trace_mode);
path_setnode(current_player, noderesult, target, NULL);
noderesult = path_scannode(current_player, counter);
counter += 1;
wait(1);
}
pathMover = 0;
}

Regards,
Pegamode

Re: moving all path nodes to ground? [Re: pegamode] #228646
09/21/08 08:20
09/21/08 08:20
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
When I call path_setnode it also sets my entity to the node position !?!

Is there any way to avoid this?

I just want to move the node to the ground, but not my entity to the path position.

Any ideas?


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