Difference between revisions of "DestroyArea"
m (added new category)
|Line 16:||Line 16:|
Revision as of 00:13, 18 April 2020Destroys the given area object and everything in it.
Destroys the given area object and everything in it. Return values:
0: Object not an area or invalid. -1: Area contains spawn location and removal would leave module without entrypoint. -2: Players in area. 1: Area destroyed successfully.
If the area is destroyed while there are players transitioning into it, the players in question will get their client to be stuck at loading screen indefinitely. It is recommended to add safety measures to avoid this situation.
1.74.8149 - 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.
|functions:||CopyArea() CreateArea() SetTransitionTarget()|