GetNPCWarningStatus

From NWN Lexicon



Contents

[edit] GetNPCWarningStatus()

Determines a NPC's state of mind toward another object.

[edit] Description

Returns an integer set by SetNPCWarningStatus() to provide a NPC's state of mind toward a creature that had or had not attacked it.



[edit] Remarks

SetNPCWarningStatus() should be called before calling this function.


[edit] Requirements

#include " NW_I0_GENERIC "

[edit] Version

1.22

[edit] Example

// This function demonstrates how to set and retrieve an NPC's warning status randomly
#include "NW_I0_GENERIC"
 
void main()
{
     SetNPCWarningStatus(Random(2));
     if(GetNPCWarningStatus()==FALSE)
     {
          ActionSpeakString("Hello Friend");
     }
}

[edit] See Also

functions: 

SetNPCWarningStatus



 author: Sarev0k, editor: Tom Cassiotis
 

Personal tools
Categories