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
0 registered members (), 18,767 guests, and 5 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
setting up Paths #127511
05/01/07 12:18
05/01/07 12:18
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline OP
Junior Member
luke_was_ere  Offline OP
Junior Member
L

Joined: Mar 2007
Posts: 69
I have a model of a car, i want it to move about a predefined route over and over. Now i have read about using Paths to be the way forward. This is what i have done:

clicked Add path and then used vertex move to draw out the area to follow, then i assigned the model of my car to the path in the properties path menu.

But when i run it doesnt move. what exactly should i be doing?


cheers :-)

Last edited by luke_was_ere; 05/01/07 12:20.
Re: setting up Paths [Re: luke_was_ere] #127512
05/01/07 12:38
05/01/07 12:38
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
u must have a script for that of course
u should look at the path_ instructions in the manual

Re: setting up Paths [Re: Scorpion] #127513
05/01/07 13:53
05/01/07 13:53
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline OP
Junior Member
luke_was_ere  Offline OP
Junior Member
L

Joined: Mar 2007
Posts: 69
am i looking at the correct part here is the code it gives as an example taken from the SED help file:

// move along a path loop
// uses _FORCE, _MOVEMODE
action patrol_path
{
// attach entity to nearest path
result = path_scan(me,my.x,my.pan,vector(360,180,1000);
if (result == 0) { return; } // no path found

// find first waypoint
var node = 1; // start at first node
path_nodepos(my,node,my._TARGET_X);

while (my._MOVEMODE)
{
// find direction
result = vec_to_angle(angle,vec_diff(temp,my._TARGET_X,my.x));

// near target? Find next waypoint of the path
if (result < 25) {
node = path_nextnode(my,node,1);
path_nodepos(my,node,my._TARGET_X);
}

// turn and walk towards target
actor_turnto(angle.PAN);
actor_moveahead(MY._FORCE);
wait(1);
}
}



I have never really done any scripting in this before so please bear with me :-)

Re: setting up Paths [Re: luke_was_ere] #127514
05/02/07 03:39
05/02/07 03:39
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
i am not sure about using a vehicle with a path, but when i put my enemy models on a path, i have to make sure i rebuild the level. did you try that, or did you just update entity? paths dont work without rebuilding the level.

Re: setting up Paths [Re: Blink] #127515
05/02/07 12:04
05/02/07 12:04
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline OP
Junior Member
luke_was_ere  Offline OP
Junior Member
L

Joined: Mar 2007
Posts: 69
tried that but same result i am afraid, what sort of script do i need to get this to work?


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