GetFirstArea()
From NWN Lexicon
Jump to navigationJump to searchReturns the first area in the module.
Description
Returns the first area in the module.
Remarks
Version
This function was added in 1.74.8149 of NWN:EE.
Note that the description of this function was omitted from the PDF release notes. The function is described in a readme in the lang/<language>/docs directory delivered with Neverwinter Nights Enhanced Edition, and in the toolset script editor.
Example
//Prints the name of all areas in a module to log.
void main()
{
object oArea = GetFirstArea();
while (GetIsObjectValid(oArea))
{
WriteTimestampedLogEntry(GetName(oArea));
oArea = GetNextArea();
}
}
void main()
{
object oArea = GetFirstArea();
while (GetIsObjectValid(oArea))
{
WriteTimestampedLogEntry(GetName(oArea));
oArea = GetNextArea();
}
}
See Also
functions: | GetNextArea() |
author: Shadguy