FANDOM


This article is about getting an area from an object; for getting the area from a location, see GetAreaFromLocation.

The GetArea() NWScript command returns the area in which an object currently is, with areas treated as being in themselves. On any error (e.g. if the object is invalid), it returns OBJECT_INVALID.

This command can be used to determine if an object is an area (by seeing if the returned value is equal to the parameter). This makes up for a shortcoming of GetObjectType().

DefinitionEdit

object GetArea (object oTarget)

object oTarget 
The object whose area will be returned.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.