How do you change the point number in a Path?

Posted By: Anonymous

How do you change the point number in a Path? - 08/02/01 23:47

I asked this question in the beginner's forum, no further answer. Here is the deal..
I created a path then I added a few points on it with vertice move (try to simulate the one in the office demo),now the path is done but all vertices in the path had the same number, can anyone tell me how to change them so they are sequenced correctly ? thanks for your time.
Posted By: James Snydstrup

Re: How do you change the point number in a Path? - 08/03/01 00:41

Tumitoto:

Ok, I'll give an explanation that I think is correct.

You can not rename individual path waypoints. You can only rename the entire path.

I think the trick is that the path 'box' contains point 1. The first point you make after this is point 2. The third point is point 3 etc. They do not appear labled this way in WED but I think that is how it works. So just note when you make your path which is point 1, 2, 3, etc. If your path is an open shape then this should be easy. Points will increment 1, 2, 3 either clockwise or counterclockwise from the point 1 'box'.

After you have your path made and have assigned the path to an entity you can then direct your entity to any way point useing;

ent_waypoint (vector, number);

number is the waypoint number from above
vector is set to that waypoint

You can then use

ent_nextpoint (vector);
ent_prevpoint (vector);

to cycle to the next or previos waypoint from the one selected above.

Anybody who has used paths please correct me if I am wrong. I haven't used paths a whole lot yet and am just summarizing this from the manual and my observations in WED.

© 2023 lite-C Forums