Jump to content

How do NPCs preach and pray?


Recommended Posts

They need two conditions: one for making sure that only a certain NPC will do that and the second to decide when they will. Seems that the GetIsPackage or something like that is the best choice.

 

Still need to do some tests.

 

Anyway, thanx for your time and help.

Edited by Dimitrisgb
Link to comment
Share on other sites

  • 8 months later...

firstly you should find a praying animation in animation menu which is located at the one of the tab's folder.

find animation and copy the path of the animation. create your custom animation and paste the animation path of the vanilla pray animation. check the condition: choose your custom praytoken by inserting "getitemcount" condition.

after that we can work with our npc.

You should create an AI package at the AI schedule. 

smth like JohnDoePraying7x5 where 7 is 7 AM and 5 is a  duration. choose use item at state for a package. after that find in STATIC object menu "marker" and place it where you want npc to stand their knees and pray. make sure you choose this marker in AI package third folder (right after conditions folder mentioned earlier). 

after that in conditions of the created package you choose 'getitemcount" and add your custom praytoken to the inventory

that's all. 
You get npc who everyday prays and 7 AM on the marker you made. 


P.S. I've seen an actual date of the thread only after I finished my advice 🙂

Edited by ArtemSHikoff
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...