Aller au contenu

Photo

Q. about shouts


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
rjshae

rjshae
  • Members
  • 4 485 messages
I'm none too familiar with the "shout" system in NWN2. If a player attacks a placeable that is a member of the "Hostile" faction (such as by bashing at a door or a chest), does that automatically cause a "shout" that alerts nearby Hostile creatures? Or do I need to add some code to the placeable's On Damaged script that will generate a shout?

Thank you. :)

#2
Orion7486

Orion7486
  • Members
  • 161 messages
You will have to put something within the script to get them to respond.

#3
MasterChanger

MasterChanger
  • Members
  • 686 messages

Orion7486 wrote...

You will have to put something within the script to get them to respond.


For creatures, default9 (OnSpawn) calls SetListeningPatterns for those shouts. The function RespondToShouts is defined within nw_i0_generic.

#4
rjshae

rjshae
  • Members
  • 4 485 messages
Thank you. I'll give it a test.