NWNX:EE  8193.36.12
nwnx_reveal.nss
Go to the documentation of this file.
1 #include "nwnx"
6 
7 const string NWNX_Reveal = "NWNX_Reveal";
8 
11 const int NWNX_REVEAL_SEEN = 1;
12 const int NWNX_REVEAL_HEARD = 0;
13 
19 void NWNX_Reveal_RevealTo(object oHiding, object oObserver, int iDetectionMethod = NWNX_REVEAL_HEARD);
20 
25 void NWNX_Reveal_SetRevealToParty(object oHiding, int bReveal, int iDetectionMethod = NWNX_REVEAL_HEARD);
26 
28 
29 void NWNX_Reveal_RevealTo(object oHiding, object oObserver, int iDetectionMethod = NWNX_REVEAL_HEARD)
30 {
31  string sFunc = "RevealTo";
32 
33  NWNX_PushArgumentInt(iDetectionMethod);
34  NWNX_PushArgumentObject(oObserver);
35  NWNX_PushArgumentObject(oHiding);
36 
37  NWNX_CallFunction(NWNX_Reveal, sFunc);
38 }
39 
40 void NWNX_Reveal_SetRevealToParty(object oHiding, int bReveal, int iDetectionMethod = NWNX_REVEAL_HEARD)
41 {
42  string sFunc = "SetRevealToParty";
43 
44  NWNX_PushArgumentInt(iDetectionMethod);
45  NWNX_PushArgumentInt(bReveal);
46  NWNX_PushArgumentObject(oHiding);
47 
48  NWNX_CallFunction(NWNX_Reveal, sFunc);
49 }
NWNX_REVEAL_HEARD
const int NWNX_REVEAL_HEARD
Heard.
Definition: nwnx_reveal.nss:12
NWNX_CallFunction
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
Definition: nwnx.nss:54
NWNX_Reveal_SetRevealToParty
void NWNX_Reveal_SetRevealToParty(object oHiding, int bReveal, int iDetectionMethod=NWNX_REVEAL_HEARD)
Sets whether a character remains visible to their party through stealth.
Definition: nwnx_reveal.nss:40
NWNX_PushArgumentObject
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:69
NWNX_PushArgumentInt
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:59
NWNX_Reveal_RevealTo
void NWNX_Reveal_RevealTo(object oHiding, object oObserver, int iDetectionMethod=NWNX_REVEAL_HEARD)
Selectively reveals the character to an observer until the next time they stealth out of sight.
Definition: nwnx_reveal.nss:29
NWNX_REVEAL_SEEN
const int NWNX_REVEAL_SEEN
Seen.
Definition: nwnx_reveal.nss:11