having a problem with SP NPC routing -1 reply

Please wait...

Diablo666

Helpfull Mapper

50 XP

4th September 2002

0 Uploads

227 Posts

0 Threads

#1 15 years ago

ok i have this script

affect ( "ePro1", /*@AFFECT_TYPE*/ FLUSH ) { set ( /*@SET_TYPES*/ "SET_WALKING", /*@BOOL_TYPES*/ "true" ); task ( "ePro1Move" ) { set ( /*@SET_TYPES*/ "SET_NAVGOAL", "p1Pro1" ); set ( /*@SET_TYPES*/ "SET_NAVGOAL", "p2Pro1" ); set ( /*@SET_TYPES*/ "SET_NAVGOAL", "p3Pro1" ); } dowait ( "ePro1Move" ); }

and i have a Protocol droid in the map (ePro1) and three waypoint_navgoal (p1Pro1, p2Pro1, p3Pro1)

but the droid only walks to the first waypoint what must i do to make him walk to all the waypoints




kylek

Helpful Mind

50 XP

22nd March 2003

0 Uploads

2,158 Posts

0 Threads

#2 15 years ago

Just make a waypoint on the right click menu just click it.

press n and in key type targetname in value type 1 then press enter and type target into key then 2 into value

then get another make it a fair distance away to where you want it to goto then place it into the map and press n type into key: targetname in value type: 2 then press enter and type target into key and 3 into value

and so on...

Just do it in the map editor it's much esier just using waypoints




LuNaTiiZ

Sith Academy Ruler

50 XP

16th November 2002

0 Uploads

92 Posts

0 Threads

#3 15 years ago

Listen, this is how you must do it... First, make him move to Waypoint 1 in a "dowait" "task"... And AFTER THAT, make him move to Waypoint 2 in a "dowait" "task"... And then the last one the same way...

This is how your script should look more like:

affect ( "ePro1", /*@AFFECT_TYPE*/ FLUSH ) { set ( /*@SET_TYPES*/ "SET_WALKING", /*@BOOL_TYPES*/ "true" ); task ( "ePro1Move" ) { set ( /*@SET_TYPES*/ "SET_NAVGOAL", "p1Pro1" ); } dowait ( "ePro1Move" ); } task ( "ePro1Move2" ) { set ( /*@SET_TYPES*/ "SET_NAVGOAL", "p2Pro1" ); } dowait ( "ePro1Move2" ); } task ( "ePro1Move3" ) { set ( /*@SET_TYPES*/ "SET_NAVGOAL", "p3Pro1" ); } dowait ( "ePro1Move3" ); }

You see, the one you made wanted him to go to all three locations at once, and he cant do that... you need him to go to one location, then the second, then the third...




Diablo666

Helpfull Mapper

50 XP

4th September 2002

0 Uploads

227 Posts

0 Threads

#4 15 years ago

he still only walks to the first waypoint




LuNaTiiZ

Sith Academy Ruler

50 XP

16th November 2002

0 Uploads

92 Posts

0 Threads

#5 15 years ago

You didnt copy+paste what i just wrote, did u??? u DID make it your self, right? cuz what i posted is not in the real format

Anyway, if you made it yourself, try sending the script (in txt form) to me, and i'll see what's wrong... my e-mail is [email]gugi2100@hotmail.com[/email]




Diablo666

Helpfull Mapper

50 XP

4th September 2002

0 Uploads

227 Posts

0 Threads

#6 15 years ago

i've copied it and edited it coz when i loaded up behaveed and loaded the txt then behave froze