|
NWNX:EE
8193.36.12
|
|
Go to the documentation of this file.
7 const string NWNX_Area =
"NWNX_Area";
229 int NWNX_Area_TestDirectLine(
object oArea,
float fStartX,
float fStartY,
float fEndX,
float fEndY,
float fPerSpace,
float fHeight,
int bIgnoreDoors=FALSE);
263 int NWNX_Area_ExportGIT(
object oArea,
string sFileName =
"",
int bExportVarTable = TRUE,
int bExportUUID = TRUE,
int nObjectFilter = 0,
string sAlias =
"NWNX");
278 int NWNX_Area_ExportARE(
object oArea,
string sFileName,
string sNewName =
"",
string sNewTag =
"",
string sAlias =
"NWNX");
356 string sFunc =
"GetNumberOfPlayersInArea";
366 string sFunc =
"GetLastEntered";
376 string sFunc =
"GetLastLeft";
386 string sFunc =
"GetPVPSetting";
396 string sFunc =
"SetPVPSetting";
405 string sFunc =
"GetAreaSpotModifier";
415 string sFunc =
"SetAreaSpotModifier";
424 string sFunc =
"GetAreaListenModifier";
434 string sFunc =
"SetAreaListenModifier";
443 string sFunc =
"GetNoRestingAllowed";
453 string sFunc =
"SetNoRestingAllowed";
462 string sFunc =
"GetWindPower";
472 string sFunc =
"SetWindPower";
481 string sFunc =
"GetWeatherChance";
492 string sFunc =
"SetWeatherChance";
502 string sFunc =
"GetFogClipDistance";
512 string sFunc =
"SetFogClipDistance";
521 string sFunc =
"GetShadowOpacity";
531 string sFunc =
"SetShadowOpacity";
541 string sFunc =
"GetDayNightCycle";
551 string sFunc =
"SetDayNightCycle";
560 string sFunc =
"GetSunMoonColors";
571 string sFunc =
"SetSunMoonColors";
581 string sFunc =
"CreateTransition";
597 string sFunc =
"GetTileAnimationLoop";
611 string sFunc =
"SetTileAnimationLoop";
624 string sFunc =
"GetTileModelResRef";
634 int NWNX_Area_TestDirectLine(
object oArea,
float fStartX,
float fStartY,
float fEndX,
float fEndY,
float fPerSpace,
float fHeight,
int bIgnoreDoors=FALSE)
636 string sFunc =
"TestDirectLine";
654 string sFunc =
"GetMusicIsPlaying";
665 string sFunc =
"CreateGenericTrigger";
680 string sFunc =
"AddObjectToExclusionList";
688 string sFunc =
"RemoveObjectFromExclusionList";
694 int NWNX_Area_ExportGIT(
object oArea,
string sFileName =
"",
int bExportVarTable = TRUE,
int bExportUUID = TRUE,
int nObjectFilter = 0,
string sAlias =
"NWNX")
696 string sFunc =
"ExportGIT";
711 string sFunc =
"GetTileInfo";
729 int NWNX_Area_ExportARE(
object oArea,
string sFileName,
string sNewName =
"",
string sNewTag =
"",
string sAlias =
"NWNX")
731 string sFunc =
"ExportARE";
745 string sFunc =
"GetAmbientSoundDay";
755 string sFunc =
"GetAmbientSoundNight";
765 string sFunc =
"GetAmbientSoundDayVolume";
775 string sFunc =
"GetAmbientSoundNightVolume";
785 string sFunc =
"CreateSoundObject";
800 string sFunc =
"RotateArea";
810 string sFunc =
"GetTileInfoByTileIndex";
829 string sFunc =
"GetPathExists";
844 string sFunc =
"GetAreaFlags";
854 string sFunc =
"SetAreaFlags";
863 string sFunc =
"GetAreaWind";
881 string sFunc =
"SetDefaultObjectUiDiscoveryMask";
float fMagnitude
Wind's magnitude.
object NWNX_Area_CreateGenericTrigger(object oArea, float fX, float fY, float fZ, string sTag="", float fSize=1.0f)
Create and return a generic trigger (square shaped of specified size) at a location.
const int NWNX_AREA_DAYNIGHTCYCLE_CYCLE_DAY_NIGHT
int NWNX_Area_ExportGIT(object oArea, string sFileName="", int bExportVarTable=TRUE, int bExportUUID=TRUE, int nObjectFilter=0, string sAlias="NWNX")
Export the .git file of oArea to the UserDirectory/nwnx folder, or to the location of sAlias.
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
int nOrientation
The tile's orientation.
void NWNX_Area_SetShadowOpacity(object area, int shadowOpacity)
Set the shadow opacity of area.
int nHeight
The tile's height.
const int NWNX_AREA_COLOR_TYPE_SUN_AMBIENT
int NWNX_Area_GetAreaFlags(object oArea)
Get oArea's flags, interior/underground etc.
void NWNX_Area_SetAreaListenModifier(object area, int listenModifier)
Set the listen modifier of area.
int nGridX
The tile's grid x position.
const int NWNX_AREA_DAYNIGHTCYCLE_ALWAYS_BRIGHT
struct NWNX_Area_TileInfo NWNX_Area_GetTileInfo(object oArea, float fTileX, float fTileY)
Get the tile info of the tile at [fTileX, fTileY] in oArea.
int nGridY
The tile's grid y position.
const int NWNX_AREA_PVP_SETTING_SERVER_DEFAULT
const int NWNX_AREA_COLOR_TYPE_MOON_DIFFUSE
void NWNX_Area_SetWeatherChance(object area, int type, int chance)
Set the weather chance of type in area.
void NWNX_Area_SetPVPSetting(object area, int pvpSetting)
Set the PVP setting of area.
int NWNX_Area_GetNoRestingAllowed(object area)
Checks the No Resting area flag.
const int NWNX_AREA_PVP_SETTING_PARTY_PVP
const int NWNX_AREA_WEATHER_CHANCE_SNOW
float NWNX_GetReturnValueFloat()
Returns the specified type from the c++ side.
void NWNX_Area_SetNoRestingAllowed(object area, int bNoRestingAllowed)
Set whether to disable resting in the area.
void NWNX_Area_SetFogClipDistance(object area, float distance)
Set the fog clip distance in area.
const int NWNX_AREA_COLOR_TYPE_SUN_DIFFUSE
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
int NWNX_Area_GetAreaSpotModifier(object area)
Get the spot modifier of area.
object NWNX_Area_GetLastEntered(object area)
Gets the creature that last entered area.
const int NWNX_AREA_WEATHER_CHANCE_LIGHTNING
void NWNX_Area_SetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop, int bEnabled)
Set the state of a tile animation loop.
const int NWNX_AREA_PVP_SETTING_FULL_PVP
float NWNX_Area_GetFogClipDistance(object area)
Get the fog clip distance in area.
string NWNX_GetReturnValueString()
Returns the specified type from the c++ side.
void NWNX_PushArgumentString(string value)
Pushes the specified type to the c++ side.
void NWNX_Area_SetSunMoonColors(object area, int type, int color)
Set the Sun/Moon Ambient/Diffuse colors of area.
struct NWNX_Area_TileInfo NWNX_Area_GetTileInfoByTileIndex(object oArea, int nIndex)
Get the tile info of the tile at nIndex in the tile array.
object NWNX_Area_CreateSoundObject(object oArea, vector vPosition, string sResRef)
Create a sound object.
int NWNX_Area_GetShadowOpacity(object area)
Get the shadow opacity of area.
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
int NWNX_Area_GetAmbientSoundNight(object oArea)
Get the ambient sound playing in an area during the night.
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
float fPitch
Wind's pitch.
int NWNX_Area_GetNumberOfPlayersInArea(object area)
Gets the number of players in area.
int NWNX_Area_GetAmbientSoundDayVolume(object oArea)
Get the volume of the ambient sound playing in an area during the day.
const int NWNX_AREA_PVP_SETTING_NO_PVP
void NWNX_Area_SetAreaFlags(object oArea, int nFlags)
Set oArea's raw flags bitmask.
void NWNX_Area_SetDayNightCycle(object area, int type)
Set the day/night cycle of area.
int NWNX_Area_TestDirectLine(object oArea, float fStartX, float fStartY, float fEndX, float fEndY, float fPerSpace, float fHeight, int bIgnoreDoors=FALSE)
Test to see if there's a direct, walkable line between two points in the area.
int NWNX_Area_GetWindPower(object area)
Get the wind power in area.
void NWNX_Area_SetAreaSpotModifier(object area, int spotModifier)
Set the spot modifier of area.
int NWNX_Area_GetDayNightCycle(object area)
Get the day/night cycle of area.
void NWNX_Area_SetDefaultObjectUiDiscoveryMask(object oArea, int nObjectTypes, int nMask, int bForceUpdate=FALSE)
Set the default discoverability mask for objects in an area.
int NWNX_Area_GetSunMoonColors(object area, int type)
Get the Sun/Moon Ambient/Diffuse colors of area.
void NWNX_Area_RemoveObjectFromExclusionList(object oObject)
Remove oObject from the ExportGIT exclusion list.
int NWNX_Area_GetPVPSetting(object area)
Get the PVP setting of area.
int NWNX_Area_GetAmbientSoundNightVolume(object oArea)
Get the volume of the ambient sound playing in an area during the night.
int NWNX_Area_GetMusicIsPlaying(object oArea, int bBattleMusic=FALSE)
Get if the area music is playing.
object NWNX_GetReturnValueObject()
Returns the specified type from the c++ side.
object NWNX_Area_CreateTransition(object area, object target, float x, float y, float z, float size=2.0f, string tag="")
Create and returns a transition (square shaped of specified size) at a location.
int NWNX_Area_GetWeatherChance(object area, int type)
Get the weather chance of type in area.
const int NWNX_AREA_DAYNIGHTCYCLE_ALWAYS_DARK
int NWNX_Area_GetPathExists(object oArea, vector vStartPosition, vector vEndPosition, int nMaxDepth)
Check if there is a path between two positions in an area.
const int NWNX_AREA_COLOR_TYPE_MOON_AMBIENT
int NWNX_Area_ExportARE(object oArea, string sFileName, string sNewName="", string sNewTag="", string sAlias="NWNX")
Export the .are file of oArea to the UserDirectory/nwnx folder, or to the location of sAlias.
void NWNX_Area_RotateArea(object oArea, int nRotation)
Rotates an existing area, including all objects within (excluding PCs).
void NWNX_PushArgumentFloat(float value)
Pushes the specified type to the c++ side.
int NWNX_Area_GetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop)
Get the state of a tile animation loop.
struct NWNX_Area_AreaWind NWNX_Area_GetAreaWind(object oArea)
Get oArea's detailed win data.
const int NWNX_AREA_WEATHER_CHANCE_RAIN
vector vDirection
Wind's direction.
void NWNX_Area_SetWindPower(object area, int windPower)
Set the wind power in area.
object NWNX_Area_GetLastLeft(object area)
Gets the creature that last left area.
void NWNX_Area_AddObjectToExclusionList(object oObject)
Add oObject to the ExportGIT exclusion list, objects on this list won't be exported when NWNX_Area_Ex...
int NWNX_Area_GetAmbientSoundDay(object oArea)
Get the ambient sound playing in an area during the day.
string NWNX_Area_GetTileModelResRef(object oArea, float fTileX, float fTileY)
Get the name of the tile model from any location.
int NWNX_Area_GetAreaListenModifier(object area)
Get the listen modifer of area.