NWNX:EE  8193.36.12
nwnx_area.nss
Go to the documentation of this file.
1 #include "nwnx"
6 
7 const string NWNX_Area = "NWNX_Area";
8 
17 
25 
33 
42 
45 {
46  int nID;
47  int nHeight;
49  int nGridX;
50  int nGridY;
51 };
52 
55 {
56  vector vDirection;
57  float fMagnitude;
58  float fYaw;
59  float fPitch;
60 };
61 
65 int NWNX_Area_GetNumberOfPlayersInArea(object area);
66 
70 object NWNX_Area_GetLastEntered(object area);
71 
74 object NWNX_Area_GetLastLeft(object area);
75 
79 int NWNX_Area_GetPVPSetting(object area);
80 
84 void NWNX_Area_SetPVPSetting(object area, int pvpSetting);
85 
89 int NWNX_Area_GetAreaSpotModifier(object area);
90 
95 void NWNX_Area_SetAreaSpotModifier(object area, int spotModifier);
96 
100 int NWNX_Area_GetAreaListenModifier(object area);
101 
106 void NWNX_Area_SetAreaListenModifier(object area, int listenModifier);
107 
111 int NWNX_Area_GetNoRestingAllowed(object area);
112 
116 void NWNX_Area_SetNoRestingAllowed(object area, int bNoRestingAllowed);
117 
121 int NWNX_Area_GetWindPower(object area);
122 
126 void NWNX_Area_SetWindPower(object area, int windPower);
127 
132 int NWNX_Area_GetWeatherChance(object area, int type);
133 
138 void NWNX_Area_SetWeatherChance(object area, int type, int chance);
139 
143 float NWNX_Area_GetFogClipDistance(object area);
144 
148 void NWNX_Area_SetFogClipDistance(object area, float distance);
149 
153 int NWNX_Area_GetShadowOpacity(object area);
154 
158 void NWNX_Area_SetShadowOpacity(object area, int shadowOpacity);
159 
163 int NWNX_Area_GetDayNightCycle(object area);
164 
168 void NWNX_Area_SetDayNightCycle(object area, int type);
169 
174 int NWNX_Area_GetSunMoonColors(object area, int type);
175 
177 // type = NWNX_AREA_COLOR_TYPE_*
186 void NWNX_Area_SetSunMoonColors(object area, int type, int color);
187 
195 object NWNX_Area_CreateTransition(object area, object target, float x, float y, float z, float size = 2.0f, string tag="");
196 
202 int NWNX_Area_GetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop);
203 
210 void NWNX_Area_SetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop, int bEnabled);
211 
215 string NWNX_Area_GetTileModelResRef(object oArea, float fTileX, float fTileY);
216 
229 int NWNX_Area_TestDirectLine(object oArea, float fStartX, float fStartY, float fEndX, float fEndY, float fPerSpace, float fHeight, int bIgnoreDoors=FALSE);
230 
235 int NWNX_Area_GetMusicIsPlaying(object oArea, int bBattleMusic = FALSE);
236 
243 object NWNX_Area_CreateGenericTrigger(object oArea, float fX, float fY, float fZ, string sTag = "", float fSize = 1.0f);
244 
247 void NWNX_Area_AddObjectToExclusionList(object oObject);
248 
251 void NWNX_Area_RemoveObjectFromExclusionList(object oObject);
252 
263 int NWNX_Area_ExportGIT(object oArea, string sFileName = "", int bExportVarTable = TRUE, int bExportUUID = TRUE, int nObjectFilter = 0, string sAlias = "NWNX");
264 
269 struct NWNX_Area_TileInfo NWNX_Area_GetTileInfo(object oArea, float fTileX, float fTileY);
270 
278 int NWNX_Area_ExportARE(object oArea, string sFileName, string sNewName = "", string sNewTag = "", string sAlias = "NWNX");
279 
283 int NWNX_Area_GetAmbientSoundDay(object oArea);
284 
288 int NWNX_Area_GetAmbientSoundNight(object oArea);
289 
293 int NWNX_Area_GetAmbientSoundDayVolume(object oArea);
294 
298 int NWNX_Area_GetAmbientSoundNightVolume(object oArea);
299 
305 object NWNX_Area_CreateSoundObject(object oArea, vector vPosition, string sResRef);
306 
311 void NWNX_Area_RotateArea(object oArea, int nRotation);
312 
317 struct NWNX_Area_TileInfo NWNX_Area_GetTileInfoByTileIndex(object oArea, int nIndex);
318 
326 int NWNX_Area_GetPathExists(object oArea, vector vStartPosition, vector vEndPosition, int nMaxDepth);
327 
331 int NWNX_Area_GetAreaFlags(object oArea);
332 
338 void NWNX_Area_SetAreaFlags(object oArea, int nFlags);
339 
343 struct NWNX_Area_AreaWind NWNX_Area_GetAreaWind(object oArea);
344 
350 void NWNX_Area_SetDefaultObjectUiDiscoveryMask(object oArea, int nObjectTypes, int nMask, int bForceUpdate = FALSE);
351 
353 
355 {
356  string sFunc = "GetNumberOfPlayersInArea";
357 
359  NWNX_CallFunction(NWNX_Area, sFunc);
360 
361  return NWNX_GetReturnValueInt();
362 }
363 
364 object NWNX_Area_GetLastEntered(object area)
365 {
366  string sFunc = "GetLastEntered";
367 
369  NWNX_CallFunction(NWNX_Area, sFunc);
370 
371  return NWNX_GetReturnValueObject();
372 }
373 
374 object NWNX_Area_GetLastLeft(object area)
375 {
376  string sFunc = "GetLastLeft";
377 
379  NWNX_CallFunction(NWNX_Area, sFunc);
380 
381  return NWNX_GetReturnValueObject();
382 }
383 
384 int NWNX_Area_GetPVPSetting(object area)
385 {
386  string sFunc = "GetPVPSetting";
387 
389  NWNX_CallFunction(NWNX_Area, sFunc);
390 
391  return NWNX_GetReturnValueInt();
392 }
393 
394 void NWNX_Area_SetPVPSetting(object area, int pvpSetting)
395 {
396  string sFunc = "SetPVPSetting";
397 
398  NWNX_PushArgumentInt(pvpSetting);
400  NWNX_CallFunction(NWNX_Area, sFunc);
401 }
402 
404 {
405  string sFunc = "GetAreaSpotModifier";
406 
408  NWNX_CallFunction(NWNX_Area, sFunc);
409 
410  return NWNX_GetReturnValueInt();
411 }
412 
413 void NWNX_Area_SetAreaSpotModifier(object area, int spotModifier)
414 {
415  string sFunc = "SetAreaSpotModifier";
416 
417  NWNX_PushArgumentInt(spotModifier);
419  NWNX_CallFunction(NWNX_Area, sFunc);
420 }
421 
423 {
424  string sFunc = "GetAreaListenModifier";
425 
427  NWNX_CallFunction(NWNX_Area, sFunc);
428 
429  return NWNX_GetReturnValueInt();
430 }
431 
432 void NWNX_Area_SetAreaListenModifier(object area, int listenModifier)
433 {
434  string sFunc = "SetAreaListenModifier";
435 
436  NWNX_PushArgumentInt(listenModifier);
438  NWNX_CallFunction(NWNX_Area, sFunc);
439 }
440 
442 {
443  string sFunc = "GetNoRestingAllowed";
444 
446  NWNX_CallFunction(NWNX_Area, sFunc);
447 
448  return NWNX_GetReturnValueInt();
449 }
450 
451 void NWNX_Area_SetNoRestingAllowed(object area, int bNoRestingAllowed)
452 {
453  string sFunc = "SetNoRestingAllowed";
454 
455  NWNX_PushArgumentInt(bNoRestingAllowed);
457  NWNX_CallFunction(NWNX_Area, sFunc);
458 }
459 
460 int NWNX_Area_GetWindPower(object area)
461 {
462  string sFunc = "GetWindPower";
463 
465  NWNX_CallFunction(NWNX_Area, sFunc);
466 
467  return NWNX_GetReturnValueInt();
468 }
469 
470 void NWNX_Area_SetWindPower(object area, int windPower)
471 {
472  string sFunc = "SetWindPower";
473 
474  NWNX_PushArgumentInt(windPower);
476  NWNX_CallFunction(NWNX_Area, sFunc);
477 }
478 
479 int NWNX_Area_GetWeatherChance(object area, int type)
480 {
481  string sFunc = "GetWeatherChance";
482 
483  NWNX_PushArgumentInt(type);
485  NWNX_CallFunction(NWNX_Area, sFunc);
486 
487  return NWNX_GetReturnValueInt();
488 }
489 
490 void NWNX_Area_SetWeatherChance(object area, int type, int chance)
491 {
492  string sFunc = "SetWeatherChance";
493 
494  NWNX_PushArgumentInt(chance);
495  NWNX_PushArgumentInt(type);
497  NWNX_CallFunction(NWNX_Area, sFunc);
498 }
499 
501 {
502  string sFunc = "GetFogClipDistance";
503 
505  NWNX_CallFunction(NWNX_Area, sFunc);
506 
507  return NWNX_GetReturnValueFloat();
508 }
509 
510 void NWNX_Area_SetFogClipDistance(object area, float distance)
511 {
512  string sFunc = "SetFogClipDistance";
513 
514  NWNX_PushArgumentFloat(distance);
516  NWNX_CallFunction(NWNX_Area, sFunc);
517 }
518 
520 {
521  string sFunc = "GetShadowOpacity";
522 
524  NWNX_CallFunction(NWNX_Area, sFunc);
525 
526  return NWNX_GetReturnValueInt();
527 }
528 
529 void NWNX_Area_SetShadowOpacity(object area, int shadowOpacity)
530 {
531  string sFunc = "SetShadowOpacity";
532 
533  NWNX_PushArgumentInt(shadowOpacity);
535  NWNX_CallFunction(NWNX_Area, sFunc);
536 }
537 
538 
540 {
541  string sFunc = "GetDayNightCycle";
542 
544  NWNX_CallFunction(NWNX_Area, sFunc);
545 
546  return NWNX_GetReturnValueInt();
547 }
548 
549 void NWNX_Area_SetDayNightCycle(object area, int type)
550 {
551  string sFunc = "SetDayNightCycle";
552 
553  NWNX_PushArgumentInt(type);
555  NWNX_CallFunction(NWNX_Area, sFunc);
556 }
557 
558 int NWNX_Area_GetSunMoonColors(object area, int type)
559 {
560  string sFunc = "GetSunMoonColors";
561 
562  NWNX_PushArgumentInt(type);
564  NWNX_CallFunction(NWNX_Area, sFunc);
565 
566  return NWNX_GetReturnValueInt();
567 }
568 
569 void NWNX_Area_SetSunMoonColors(object area, int type, int color)
570 {
571  string sFunc = "SetSunMoonColors";
572 
573  NWNX_PushArgumentInt(color);
574  NWNX_PushArgumentInt(type);
576  NWNX_CallFunction(NWNX_Area, sFunc);
577 }
578 
579 object NWNX_Area_CreateTransition(object area, object target, float x, float y, float z, float size = 2.0f, string tag="")
580 {
581  string sFunc = "CreateTransition";
582 
588  NWNX_PushArgumentObject(target);
590  NWNX_CallFunction(NWNX_Area, sFunc);
591 
592  return NWNX_GetReturnValueObject();
593 }
594 
595 int NWNX_Area_GetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop)
596 {
597  string sFunc = "GetTileAnimationLoop";
598 
599  NWNX_PushArgumentInt(nAnimLoop);
600  NWNX_PushArgumentFloat(fTileY);
601  NWNX_PushArgumentFloat(fTileX);
603 
604  NWNX_CallFunction(NWNX_Area, sFunc);
605 
606  return NWNX_GetReturnValueInt();
607 }
608 
609 void NWNX_Area_SetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop, int bEnabled)
610 {
611  string sFunc = "SetTileAnimationLoop";
612 
613  NWNX_PushArgumentInt(bEnabled);
614  NWNX_PushArgumentInt(nAnimLoop);
615  NWNX_PushArgumentFloat(fTileY);
616  NWNX_PushArgumentFloat(fTileX);
618 
619  NWNX_CallFunction(NWNX_Area, sFunc);
620 }
621 
622 string NWNX_Area_GetTileModelResRef(object oArea, float fTileX, float fTileY)
623 {
624  string sFunc = "GetTileModelResRef";
625  NWNX_PushArgumentFloat(fTileY);
626  NWNX_PushArgumentFloat(fTileX);
628 
629  NWNX_CallFunction(NWNX_Area, sFunc);
630 
631  return NWNX_GetReturnValueString();
632 }
633 
634 int NWNX_Area_TestDirectLine(object oArea, float fStartX, float fStartY, float fEndX, float fEndY, float fPerSpace, float fHeight, int bIgnoreDoors=FALSE)
635 {
636  string sFunc = "TestDirectLine";
637 
638  NWNX_PushArgumentInt(bIgnoreDoors);
639  NWNX_PushArgumentFloat(fHeight);
640  NWNX_PushArgumentFloat(fPerSpace);
641  NWNX_PushArgumentFloat(fEndY);
642  NWNX_PushArgumentFloat(fEndX);
643  NWNX_PushArgumentFloat(fStartY);
644  NWNX_PushArgumentFloat(fStartX);
646 
647  NWNX_CallFunction(NWNX_Area, sFunc);
648 
649  return NWNX_GetReturnValueInt();
650 }
651 
652 int NWNX_Area_GetMusicIsPlaying(object oArea, int bBattleMusic = FALSE)
653 {
654  string sFunc = "GetMusicIsPlaying";
655 
656  NWNX_PushArgumentInt(bBattleMusic);
658  NWNX_CallFunction(NWNX_Area, sFunc);
659 
660  return NWNX_GetReturnValueInt();
661 }
662 
663 object NWNX_Area_CreateGenericTrigger(object oArea, float fX, float fY, float fZ, string sTag = "", float fSize = 1.0f)
664 {
665  string sFunc = "CreateGenericTrigger";
666 
667  NWNX_PushArgumentFloat(fSize);
673  NWNX_CallFunction(NWNX_Area, sFunc);
674 
675  return NWNX_GetReturnValueObject();
676 }
677 
679 {
680  string sFunc = "AddObjectToExclusionList";
681 
682  NWNX_PushArgumentObject(oObject);
683  NWNX_CallFunction(NWNX_Area, sFunc);
684 }
685 
687 {
688  string sFunc = "RemoveObjectFromExclusionList";
689 
690  NWNX_PushArgumentObject(oObject);
691  NWNX_CallFunction(NWNX_Area, sFunc);
692 }
693 
694 int NWNX_Area_ExportGIT(object oArea, string sFileName = "", int bExportVarTable = TRUE, int bExportUUID = TRUE, int nObjectFilter = 0, string sAlias = "NWNX")
695 {
696  string sFunc = "ExportGIT";
697 
698  NWNX_PushArgumentString(sAlias);
699  NWNX_PushArgumentInt(nObjectFilter);
700  NWNX_PushArgumentInt(bExportUUID);
701  NWNX_PushArgumentInt(bExportVarTable);
702  NWNX_PushArgumentString(sFileName);
704  NWNX_CallFunction(NWNX_Area, sFunc);
705 
706  return NWNX_GetReturnValueInt();
707 }
708 
709 struct NWNX_Area_TileInfo NWNX_Area_GetTileInfo(object oArea, float fTileX, float fTileY)
710 {
711  string sFunc = "GetTileInfo";
712 
713  NWNX_PushArgumentFloat(fTileY);
714  NWNX_PushArgumentFloat(fTileX);
716  NWNX_CallFunction(NWNX_Area, sFunc);
717 
718  struct NWNX_Area_TileInfo str;
719 
724  str.nID = NWNX_GetReturnValueInt();
725 
726  return str;
727 }
728 
729 int NWNX_Area_ExportARE(object oArea, string sFileName, string sNewName = "", string sNewTag = "", string sAlias = "NWNX")
730 {
731  string sFunc = "ExportARE";
732 
733  NWNX_PushArgumentString(sAlias);
734  NWNX_PushArgumentString(sNewTag);
735  NWNX_PushArgumentString(sNewName);
736  NWNX_PushArgumentString(sFileName);
738  NWNX_CallFunction(NWNX_Area, sFunc);
739 
740  return NWNX_GetReturnValueInt();
741 }
742 
744 {
745  string sFunc = "GetAmbientSoundDay";
746 
748  NWNX_CallFunction(NWNX_Area, sFunc);
749 
750  return NWNX_GetReturnValueInt();
751 }
752 
754 {
755  string sFunc = "GetAmbientSoundNight";
756 
758  NWNX_CallFunction(NWNX_Area, sFunc);
759 
760  return NWNX_GetReturnValueInt();
761 }
762 
764 {
765  string sFunc = "GetAmbientSoundDayVolume";
766 
768  NWNX_CallFunction(NWNX_Area, sFunc);
769 
770  return NWNX_GetReturnValueInt();
771 }
772 
774 {
775  string sFunc = "GetAmbientSoundNightVolume";
776 
778  NWNX_CallFunction(NWNX_Area, sFunc);
779 
780  return NWNX_GetReturnValueInt();
781 }
782 
783 object NWNX_Area_CreateSoundObject(object oArea, vector vPosition, string sResRef)
784 {
785  string sFunc = "CreateSoundObject";
786 
787  NWNX_PushArgumentString(sResRef);
788  NWNX_PushArgumentFloat(vPosition.z);
789  NWNX_PushArgumentFloat(vPosition.y);
790  NWNX_PushArgumentFloat(vPosition.x);
792 
793  NWNX_CallFunction(NWNX_Area, sFunc);
794 
795  return NWNX_GetReturnValueObject();
796 }
797 
798 void NWNX_Area_RotateArea(object oArea, int nRotation)
799 {
800  string sFunc = "RotateArea";
801 
802  NWNX_PushArgumentInt(nRotation);
804 
805  NWNX_CallFunction(NWNX_Area, sFunc);
806 }
807 
808 struct NWNX_Area_TileInfo NWNX_Area_GetTileInfoByTileIndex(object oArea, int nIndex)
809 {
810  string sFunc = "GetTileInfoByTileIndex";
811 
812  NWNX_PushArgumentInt(nIndex);
814  NWNX_CallFunction(NWNX_Area, sFunc);
815 
816  struct NWNX_Area_TileInfo str;
817 
822  str.nID = NWNX_GetReturnValueInt();
823 
824  return str;
825 }
826 
827 int NWNX_Area_GetPathExists(object oArea, vector vStartPosition, vector vEndPosition, int nMaxDepth)
828 {
829  string sFunc = "GetPathExists";
830 
831  NWNX_PushArgumentInt(nMaxDepth);
832  NWNX_PushArgumentFloat(vEndPosition.y);
833  NWNX_PushArgumentFloat(vEndPosition.x);
834  NWNX_PushArgumentFloat(vStartPosition.y);
835  NWNX_PushArgumentFloat(vStartPosition.x);
837  NWNX_CallFunction(NWNX_Area, sFunc);
838 
839  return NWNX_GetReturnValueInt();
840 }
841 
842 int NWNX_Area_GetAreaFlags(object oArea)
843 {
844  string sFunc = "GetAreaFlags";
845 
847  NWNX_CallFunction(NWNX_Area, sFunc);
848 
849  return NWNX_GetReturnValueInt();
850 }
851 
852 void NWNX_Area_SetAreaFlags(object oArea, int nFlags)
853 {
854  string sFunc = "SetAreaFlags";
855 
856  NWNX_PushArgumentInt(nFlags);
858  NWNX_CallFunction(NWNX_Area, sFunc);
859 }
860 
862 {
863  string sFunc = "GetAreaWind";
864  struct NWNX_Area_AreaWind data;
865 
867  NWNX_CallFunction(NWNX_Area, sFunc);
868 
875 
876  return data;
877 }
878 
879 void NWNX_Area_SetDefaultObjectUiDiscoveryMask(object oArea, int nObjectTypes, int nMask, int bForceUpdate = FALSE)
880 {
881  string sFunc = "SetDefaultObjectUiDiscoveryMask";
882 
883  NWNX_PushArgumentInt(bForceUpdate);
884  NWNX_PushArgumentInt(nMask);
885  NWNX_PushArgumentInt(nObjectTypes);
887  NWNX_CallFunction(NWNX_Area, sFunc);
888 }
NWNX_Area_AreaWind::fMagnitude
float fMagnitude
Wind's magnitude.
Definition: nwnx_area.nss:57
NWNX_Area_CreateGenericTrigger
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.
Definition: nwnx_area.nss:663
NWNX_AREA_DAYNIGHTCYCLE_CYCLE_DAY_NIGHT
const int NWNX_AREA_DAYNIGHTCYCLE_CYCLE_DAY_NIGHT
Definition: nwnx_area.nss:29
NWNX_Area_AreaWind::fYaw
float fYaw
Wind's yaw.
Definition: nwnx_area.nss:58
NWNX_Area_ExportGIT
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.
Definition: nwnx_area.nss:694
NWNX_GetReturnValueInt
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
Definition: nwnx.nss:94
NWNX_Area_TileInfo::nOrientation
int nOrientation
The tile's orientation.
Definition: nwnx_area.nss:48
NWNX_Area_SetShadowOpacity
void NWNX_Area_SetShadowOpacity(object area, int shadowOpacity)
Set the shadow opacity of area.
Definition: nwnx_area.nss:529
NWNX_Area_TileInfo::nHeight
int nHeight
The tile's height.
Definition: nwnx_area.nss:47
NWNX_AREA_COLOR_TYPE_SUN_AMBIENT
const int NWNX_AREA_COLOR_TYPE_SUN_AMBIENT
Definition: nwnx_area.nss:39
NWNX_Area_GetAreaFlags
int NWNX_Area_GetAreaFlags(object oArea)
Get oArea's flags, interior/underground etc.
Definition: nwnx_area.nss:842
NWNX_Area_SetAreaListenModifier
void NWNX_Area_SetAreaListenModifier(object area, int listenModifier)
Set the listen modifier of area.
Definition: nwnx_area.nss:432
NWNX_Area_TileInfo::nGridX
int nGridX
The tile's grid x position.
Definition: nwnx_area.nss:49
NWNX_AREA_DAYNIGHTCYCLE_ALWAYS_BRIGHT
const int NWNX_AREA_DAYNIGHTCYCLE_ALWAYS_BRIGHT
Definition: nwnx_area.nss:30
NWNX_Area_GetTileInfo
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.
Definition: nwnx_area.nss:709
NWNX_Area_AreaWind
Area wind info struct.
Definition: nwnx_area.nss:54
NWNX_Area_TileInfo::nGridY
int nGridY
The tile's grid y position.
Definition: nwnx_area.nss:50
NWNX_AREA_PVP_SETTING_SERVER_DEFAULT
const int NWNX_AREA_PVP_SETTING_SERVER_DEFAULT
Definition: nwnx_area.nss:15
NWNX_AREA_COLOR_TYPE_MOON_DIFFUSE
const int NWNX_AREA_COLOR_TYPE_MOON_DIFFUSE
Definition: nwnx_area.nss:38
NWNX_Area_SetWeatherChance
void NWNX_Area_SetWeatherChance(object area, int type, int chance)
Set the weather chance of type in area.
Definition: nwnx_area.nss:490
NWNX_Area_SetPVPSetting
void NWNX_Area_SetPVPSetting(object area, int pvpSetting)
Set the PVP setting of area.
Definition: nwnx_area.nss:394
NWNX_Area_GetNoRestingAllowed
int NWNX_Area_GetNoRestingAllowed(object area)
Checks the No Resting area flag.
Definition: nwnx_area.nss:441
NWNX_AREA_PVP_SETTING_PARTY_PVP
const int NWNX_AREA_PVP_SETTING_PARTY_PVP
Definition: nwnx_area.nss:13
NWNX_AREA_WEATHER_CHANCE_SNOW
const int NWNX_AREA_WEATHER_CHANCE_SNOW
Definition: nwnx_area.nss:22
NWNX_GetReturnValueFloat
float NWNX_GetReturnValueFloat()
Returns the specified type from the c++ side.
Definition: nwnx.nss:99
NWNX_Area_SetNoRestingAllowed
void NWNX_Area_SetNoRestingAllowed(object area, int bNoRestingAllowed)
Set whether to disable resting in the area.
Definition: nwnx_area.nss:451
NWNX_Area_SetFogClipDistance
void NWNX_Area_SetFogClipDistance(object area, float distance)
Set the fog clip distance in area.
Definition: nwnx_area.nss:510
NWNX_AREA_COLOR_TYPE_SUN_DIFFUSE
const int NWNX_AREA_COLOR_TYPE_SUN_DIFFUSE
Definition: nwnx_area.nss:40
NWNX_CallFunction
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
Definition: nwnx.nss:54
NWNX_Area_GetAreaSpotModifier
int NWNX_Area_GetAreaSpotModifier(object area)
Get the spot modifier of area.
Definition: nwnx_area.nss:403
NWNX_Area_GetLastEntered
object NWNX_Area_GetLastEntered(object area)
Gets the creature that last entered area.
Definition: nwnx_area.nss:364
NWNX_AREA_WEATHER_CHANCE_LIGHTNING
const int NWNX_AREA_WEATHER_CHANCE_LIGHTNING
Definition: nwnx_area.nss:23
NWNX_Area_SetTileAnimationLoop
void NWNX_Area_SetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop, int bEnabled)
Set the state of a tile animation loop.
Definition: nwnx_area.nss:609
NWNX_AREA_PVP_SETTING_FULL_PVP
const int NWNX_AREA_PVP_SETTING_FULL_PVP
Definition: nwnx_area.nss:14
NWNX_Area_GetFogClipDistance
float NWNX_Area_GetFogClipDistance(object area)
Get the fog clip distance in area.
Definition: nwnx_area.nss:500
NWNX_GetReturnValueString
string NWNX_GetReturnValueString()
Returns the specified type from the c++ side.
Definition: nwnx.nss:109
NWNX_PushArgumentString
void NWNX_PushArgumentString(string value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:74
NWNX_Area_SetSunMoonColors
void NWNX_Area_SetSunMoonColors(object area, int type, int color)
Set the Sun/Moon Ambient/Diffuse colors of area.
Definition: nwnx_area.nss:569
NWNX_Area_GetTileInfoByTileIndex
struct NWNX_Area_TileInfo NWNX_Area_GetTileInfoByTileIndex(object oArea, int nIndex)
Get the tile info of the tile at nIndex in the tile array.
Definition: nwnx_area.nss:808
NWNX_Area_CreateSoundObject
object NWNX_Area_CreateSoundObject(object oArea, vector vPosition, string sResRef)
Create a sound object.
Definition: nwnx_area.nss:783
NWNX_Area_GetShadowOpacity
int NWNX_Area_GetShadowOpacity(object area)
Get the shadow opacity of area.
Definition: nwnx_area.nss:519
NWNX_PushArgumentObject
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:69
NWNX_Area_GetAmbientSoundNight
int NWNX_Area_GetAmbientSoundNight(object oArea)
Get the ambient sound playing in an area during the night.
Definition: nwnx_area.nss:753
NWNX_PushArgumentInt
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:59
NWNX_Area_AreaWind::fPitch
float fPitch
Wind's pitch.
Definition: nwnx_area.nss:59
NWNX_Area_GetNumberOfPlayersInArea
int NWNX_Area_GetNumberOfPlayersInArea(object area)
Gets the number of players in area.
Definition: nwnx_area.nss:354
NWNX_Area_GetAmbientSoundDayVolume
int NWNX_Area_GetAmbientSoundDayVolume(object oArea)
Get the volume of the ambient sound playing in an area during the day.
Definition: nwnx_area.nss:763
NWNX_AREA_PVP_SETTING_NO_PVP
const int NWNX_AREA_PVP_SETTING_NO_PVP
Definition: nwnx_area.nss:12
NWNX_Area_SetAreaFlags
void NWNX_Area_SetAreaFlags(object oArea, int nFlags)
Set oArea's raw flags bitmask.
Definition: nwnx_area.nss:852
NWNX_Area_SetDayNightCycle
void NWNX_Area_SetDayNightCycle(object area, int type)
Set the day/night cycle of area.
Definition: nwnx_area.nss:549
NWNX_Area_TestDirectLine
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.
Definition: nwnx_area.nss:634
NWNX_Area_GetWindPower
int NWNX_Area_GetWindPower(object area)
Get the wind power in area.
Definition: nwnx_area.nss:460
NWNX_Area_SetAreaSpotModifier
void NWNX_Area_SetAreaSpotModifier(object area, int spotModifier)
Set the spot modifier of area.
Definition: nwnx_area.nss:413
NWNX_Area_GetDayNightCycle
int NWNX_Area_GetDayNightCycle(object area)
Get the day/night cycle of area.
Definition: nwnx_area.nss:539
NWNX_Area_TileInfo
A tile info struct.
Definition: nwnx_area.nss:44
NWNX_Area_SetDefaultObjectUiDiscoveryMask
void NWNX_Area_SetDefaultObjectUiDiscoveryMask(object oArea, int nObjectTypes, int nMask, int bForceUpdate=FALSE)
Set the default discoverability mask for objects in an area.
Definition: nwnx_area.nss:879
NWNX_Area_GetSunMoonColors
int NWNX_Area_GetSunMoonColors(object area, int type)
Get the Sun/Moon Ambient/Diffuse colors of area.
Definition: nwnx_area.nss:558
NWNX_Area_RemoveObjectFromExclusionList
void NWNX_Area_RemoveObjectFromExclusionList(object oObject)
Remove oObject from the ExportGIT exclusion list.
Definition: nwnx_area.nss:686
NWNX_Area_GetPVPSetting
int NWNX_Area_GetPVPSetting(object area)
Get the PVP setting of area.
Definition: nwnx_area.nss:384
NWNX_Area_GetAmbientSoundNightVolume
int NWNX_Area_GetAmbientSoundNightVolume(object oArea)
Get the volume of the ambient sound playing in an area during the night.
Definition: nwnx_area.nss:773
NWNX_Area_GetMusicIsPlaying
int NWNX_Area_GetMusicIsPlaying(object oArea, int bBattleMusic=FALSE)
Get if the area music is playing.
Definition: nwnx_area.nss:652
NWNX_GetReturnValueObject
object NWNX_GetReturnValueObject()
Returns the specified type from the c++ side.
Definition: nwnx.nss:104
NWNX_Area_CreateTransition
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.
Definition: nwnx_area.nss:579
NWNX_Area_GetWeatherChance
int NWNX_Area_GetWeatherChance(object area, int type)
Get the weather chance of type in area.
Definition: nwnx_area.nss:479
NWNX_AREA_DAYNIGHTCYCLE_ALWAYS_DARK
const int NWNX_AREA_DAYNIGHTCYCLE_ALWAYS_DARK
Definition: nwnx_area.nss:31
NWNX_Area_GetPathExists
int NWNX_Area_GetPathExists(object oArea, vector vStartPosition, vector vEndPosition, int nMaxDepth)
Check if there is a path between two positions in an area.
Definition: nwnx_area.nss:827
NWNX_AREA_COLOR_TYPE_MOON_AMBIENT
const int NWNX_AREA_COLOR_TYPE_MOON_AMBIENT
Definition: nwnx_area.nss:37
NWNX_Area_ExportARE
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.
Definition: nwnx_area.nss:729
NWNX_Area_RotateArea
void NWNX_Area_RotateArea(object oArea, int nRotation)
Rotates an existing area, including all objects within (excluding PCs).
Definition: nwnx_area.nss:798
NWNX_PushArgumentFloat
void NWNX_PushArgumentFloat(float value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:64
NWNX_Area_GetTileAnimationLoop
int NWNX_Area_GetTileAnimationLoop(object oArea, float fTileX, float fTileY, int nAnimLoop)
Get the state of a tile animation loop.
Definition: nwnx_area.nss:595
NWNX_Area_GetAreaWind
struct NWNX_Area_AreaWind NWNX_Area_GetAreaWind(object oArea)
Get oArea's detailed win data.
Definition: nwnx_area.nss:861
NWNX_AREA_WEATHER_CHANCE_RAIN
const int NWNX_AREA_WEATHER_CHANCE_RAIN
Definition: nwnx_area.nss:21
NWNX_Area_AreaWind::vDirection
vector vDirection
Wind's direction.
Definition: nwnx_area.nss:56
NWNX_Area_SetWindPower
void NWNX_Area_SetWindPower(object area, int windPower)
Set the wind power in area.
Definition: nwnx_area.nss:470
NWNX_Area_GetLastLeft
object NWNX_Area_GetLastLeft(object area)
Gets the creature that last left area.
Definition: nwnx_area.nss:374
NWNX_Area_AddObjectToExclusionList
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...
Definition: nwnx_area.nss:678
NWNX_Area_TileInfo::nID
int nID
The tile's ID.
Definition: nwnx_area.nss:46
NWNX_Area_GetAmbientSoundDay
int NWNX_Area_GetAmbientSoundDay(object oArea)
Get the ambient sound playing in an area during the day.
Definition: nwnx_area.nss:743
NWNX_Area_GetTileModelResRef
string NWNX_Area_GetTileModelResRef(object oArea, float fTileX, float fTileY)
Get the name of the tile model from any location.
Definition: nwnx_area.nss:622
NWNX_Area_GetAreaListenModifier
int NWNX_Area_GetAreaListenModifier(object area)
Get the listen modifer of area.
Definition: nwnx_area.nss:422