R2-X2 Posted March 24, 2009 Share Posted March 24, 2009 One question: How to use waypoints to make an enemy patrol ? I try, but it doesn't works. Could you please write a little tutorial? I know there is already this, but I can't understand it. -R2-X2 Link to comment Share on other sites More sharing options...
Sithspecter Posted March 24, 2009 Share Posted March 24, 2009 I'm not the best guy at scripting and all that good stuff, but I have managed to do this successfully (Once). Okay, let's get started. First, you need to make your creature file. Do everything that you normally do to make a creature file, but I would make the tag very simple. In my case, I used "walkdrd" without the quotes. Also, change the Template ResRef to whatever you decide to make the tag. Under the scripts tab, remove everything, and type the following scripts into their corresponding fields: OnEndDialogu- k_act_walkways2 OnSpawn- k_def_spawn01 OnRested- k_act_walkways2 (These scripts command the NPC to walk the waypoints you will create next) Save your .utc with the same name that you used in the tag and Template ResRef. Now, get the waypoint editor open and enter the following in the Template ResRef, Tag, and Name files: wp_walkdrd_01 (if you're using a different tag, use wp_tag_01) Next, put your character in the .git file as normal, and then go to the waypoints section. Click 'Add struct', and then use the following for the fields: Save the waypoint as what you used in the last step. Okay, now make however many more that you need, just changing the number on the end (ex: wp_walkdrd_01, wp_walkdrd_02, .etc). Add the .utc to the .git file as normal, and then go down to the waypoint list and click 'Add Struct.' Find and existing .git with a waypoint beginning with wp_, and then copy and change the following fields: Tag: wp_walkdrd_01 (or whatever you saved your waypoint as) TemplateResRef: wp_walkdrd_10 (or whatever you saved your waypoint as) XPosition: use whereami cheat to find location YPosition: use whereami cheat to find location ZPosition: use whereami cheat to find location Add more waypoints for a longer path. Once your creature completes the last waypoint, he will return to the first and start over. Hope that helps, and remember to include your .utc's and .utw's in the ERF! SS Link to comment Share on other sites More sharing options...
R2-X2 Posted March 25, 2009 Author Share Posted March 25, 2009 Thanks SS, you always surprise me. First URM, then Revan's Robe and now you seem to be te only one who can say something about waypoint without saying it 'ununderstandable'. Link to comment Share on other sites More sharing options...
Sithspecter Posted March 25, 2009 Share Posted March 25, 2009 Glad I can be of help. I'm a pretty visual learner, and I understand things a lot better in organized steps. I'll also put this in the tutorial section. Link to comment Share on other sites More sharing options...
R2-X2 Posted March 26, 2009 Author Share Posted March 26, 2009 Yes, put that there, because it always worked when I used it yesterday! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.