Koreno Posted August 9, 2006 Share Posted August 9, 2006 I need a script that I can put in a new AI package. I have a package for an NPC to change to another cell then fo to their room and sit in a chair by their bed. But the hallway to their room has 2 turns before they get to the room. SO what I need is to make an NPC walk a specific path hitting 3 markers that I already placed in the map (khhBarracksMarker01, 02, and 03) then go to the chair and sit. This is the only way I can think of to make the NPC not run in place against walls trying to get to their destination. They dont sense the walls or something. Link to comment Share on other sites More sharing options...
Koreno Posted August 9, 2006 Author Share Posted August 9, 2006 This is what I have so far.... HEHE Im so stupid when it comes to this. :( Any help in making this work would be great. In what I have so far there are no script errors when I saved it. I just dont know the commands on how to get the NPC to go to the ref. scriptName khhShelbyToBedroomScript Ref khhSlut01Ref khhBarracksMarker01Ref khhBarracksMarker02Ref khhBarracksMarker03Ref khhShelbysChairShort Var1 begin OnPackageStart khhShelbyRead set var1 to 0 if var1==0;go to Marker01set var1 to 1endif if var1==1;go to Marker02set var1 to 2endif if var1==2;go to Marker03set var1 to 3endif if var1==3;go to ShelbyChairendif set var1 to 0 end Link to comment Share on other sites More sharing options...
Vagrant0 Posted August 9, 2006 Share Posted August 9, 2006 You might want to look at pathgrids. Check the Wiki, and ask yourself why you didn't earlier. What you're trying to do would be more for some specific scene you want the actor to be in, standing at a certain point at a certain time. For day to day stuff, you'll want to use pathgrids, and have them figure out how to get from point A to point B. Link to comment Share on other sites More sharing options...
Koreno Posted August 9, 2006 Author Share Posted August 9, 2006 You might want to look at pathgrids. Check the Wiki, and ask yourself why you didn't earlier. What you're trying to do would be more for some specific scene you want the actor to be in, standing at a certain point at a certain time. For day to day stuff, you'll want to use pathgrids, and have them figure out how to get from point A to point B. I just found that.. HAHAHA... I was searching on the CS wiki forever ... its not layed out very well.. The wiki that is. I threw does some waypoints and tested it out... it worked great... YAHOOOOOOO Im learning! Not bad for an old man like me.. :) Now if I could only figure out how to make the NPCs hold books and read like Martin does. Link to comment Share on other sites More sharing options...
GBHis Posted August 9, 2006 Share Posted August 9, 2006 Playing "idle" animations. Look for something like "PlayGroup", "PlayIdle", "PlayLoop" or "PlayAnimation" on the wiki. I haven't done animations, and I can't remember the commands. Link to comment Share on other sites More sharing options...
Koreno Posted August 9, 2006 Author Share Posted August 9, 2006 Playing "idle" animations. Look for something like "PlayGroup", "PlayIdle", "PlayLoop" or "PlayAnimation" on the wiki. I haven't done animations, and I can't remember the commands. I will take a look .. thank you Link to comment Share on other sites More sharing options...
Vagrant0 Posted August 9, 2006 Share Posted August 9, 2006 Playing "idle" animations. Look for something like "PlayGroup", "PlayIdle", "PlayLoop" or "PlayAnimation" on the wiki. I haven't done animations, and I can't remember the commands. Actually, that can be setup within packages. Give them a "use item at" package with the target being a book, and the location being a chair somewhere. When that package gets called, they will walk to the book, then walk to the chair to start reading. It should be noted that having a shield equiped while reading doesn't look right. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.