NWNX:EE  8193.36.12
NWNX Constants

Files

file  nwnx_consts.nss
 

Functions

int NWNX_Consts_TranslateNWScriptAnimation (int nAnimation)
 Translates ANIMATION_LOOPING_* and ANIMATION_FIREFORGET_* constants to their engine equivalent. More...
 
int NWNX_Consts_TranslateEngineAnimation (int nAnimation)
 Translates engine animation constants to their ANIMATION_LOOPING_* and ANIMATION_FIREFORGET_* equivalent. More...
 
int NWNX_Consts_TranslateNWScriptObjectType (int nObjectType)
 Translates OBJECT_TYPE_* constants to their engine equivalent. More...
 

Function Documentation

◆ NWNX_Consts_TranslateNWScriptAnimation()

int NWNX_Consts_TranslateNWScriptAnimation ( int  nAnimation)

Translates ANIMATION_LOOPING_* and ANIMATION_FIREFORGET_* constants to their engine equivalent.

Parameters
nAnimationThe nwn animation constant
Returns
The engine equivalent of the constant

Definition at line 23 of file nwnx_consts.nss.

◆ NWNX_Consts_TranslateEngineAnimation()

int NWNX_Consts_TranslateEngineAnimation ( int  nAnimation)

Translates engine animation constants to their ANIMATION_LOOPING_* and ANIMATION_FIREFORGET_* equivalent.

Parameters
nAnimationThe engine animation constant
Returns
The NWScript equivalent of the constant or -1 if a nwscript equivalent doesn't exist

Definition at line 93 of file nwnx_consts.nss.

◆ NWNX_Consts_TranslateNWScriptObjectType()

int NWNX_Consts_TranslateNWScriptObjectType ( int  nObjectType)

Translates OBJECT_TYPE_* constants to their engine equivalent.

Parameters
nObjectTypeThe nwn object type
Returns
The engine equivalent of the constant

Definition at line 163 of file nwnx_consts.nss.