Blau on 21/6/2006 at 12:26
1.How do you set an NPC to not freak out and run when they see garrett?
2.How do you make an NPC sit, also, how could you make one walk to a chair and then sit in it? Or get up and walk away from the chair?
nomad of the pacific on 21/6/2006 at 23:08
Quote:
1.How do you set an NPC to not freak out and run when they see garrett?
In the characters properties, go to AIPawn and change their FactionModelClass to one that is neutral to the player. To find the one you want, under Actor Classes, check MetaProperty:AIModel:AIFactionModel:T3FactionModel and select any of the entries to show their properties. Under AIFaction, you'll see a list of their dispositions to each faction and to the player.
Quote:
2.How do you make an NPC sit, also, how could you make one walk to a chair and then sit in it? Or get up and walk away from the chair?
Create a link from the character to the chair. There is a link flavor called Sitting. To make the character stand, just break the link with a script. I don't think there's a way to make an AI sit from standing.
Blau on 22/6/2006 at 06:23
I love it how everything I think will be difficult is really easy, but everything that should be easy is pointlessly complicated.
Also, can anyone tell me how to make an npc sleep?
Tithian on 22/6/2006 at 08:23
Quote:
Also, can anyone tell me how to make an npc sleep?
You do it the same way you make them sit, only you use a link flavor called sleeping. Use it to link the AI to a bed.
Blau on 22/6/2006 at 08:51
Should of noticed that myself :sweat: thank you.
EDIT: Im trying to get npcs to sit in a booth, I have them linked to invisible chairs so they sit, but on map start they seem to get 'pushed' out of the booth, but still in a sitting position.
Heres a a picture. When the level starts they just sort of levitate out of thier chairs to these positions.
Inline Image:
http://img90.imageshack.us/img90/1689/boothsit6qq.jpg(I know the chair legs are visible, I was doing that to see if the chairs moved as well).
Crispy on 22/6/2006 at 09:13
Is it because the table is too close? They might be colliding with it and getting pushed around. Try moving the table and any other obstructions away and seeing if the problem persists.
Ziemanskye on 22/6/2006 at 10:37
Also try turing the collision of the booth seat itself off - the invisible chair/sitting point might be being forced out of it.
And I think it is possible to make people sit down again - I saw a script action for it somewhere, I think (don't do much scripting), or you could maybe link the chair with a different type of link and see if you could create a sittinglink later with a script - could just not work, or teleport them into the seat, but it might work.
Blau on 22/6/2006 at 12:30
I've set the booth, the invisible chairs, the npcs and the tables to not collide with anything, also set the collision radius and height to 0 on all of these objects. They still wont sit in the chair properly, sitting raised above it as before, I've even changed their seating positions, as well as the height of the chairs theyre linked to, I even got rid of the table completley (this did allow one of them to sit properly), but they still wont sit in them properly! Im thinking this may have something to do with the navmesh :confused:
Krypt on 23/6/2006 at 21:29
Sitting was always problematic. If I recall correctly, in the original maps we ended up having to move all chairs way back from any other physical object so the AI would have full clearance to path to the chair and not get pushed off it.
Blau on 24/6/2006 at 05:19
Its just a shame that they look so empty without people in them, im trying to make a place with lots of people, but it'd be worse than morrowind having all these people just standing around.