NWNXGetIsAvailable()

From NWN Lexicon
Jump to navigationJump to search
Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Check if NWNX is currently running.

int NWNXGetIsAvailable();

Description

Check if NWNX is currently running.

Returns TRUE if NWNX is available, FALSE if not.


Remarks

This should be used to gate any NWNX calls else a script will have a stack underflow error if a NWNX function is called and stop working. This allows you to still have a functioning module for singleplayer testing (eg area building, testing scripts, conversations etc.) without running the whole NWNX stack on top.

The NWNX project allows server administrators to run additional commands and inject advanced behaviour changes into the game. The version for NWN:EE is available here: https://github.com/nwnxee


Version

This function was added in 1.89.8193.37 of NWN:EE.


See Also

functions:

Category:NWNX Functions