region_create(STRING* name, VECTOR* vMin, VECTOR* vMax)

Creates a portal region from the given bounding box. Alternatively, regions can be placed in WED by clicking Add Region.

Parameters:

name - region name, STRING* or char*.
vMin - region minimum coordinate.
vMin - region maximum coordinate.

Returns:

0 if the region could not created, otherwise nonzero.

Speed:

Fast.

Remarks:

Different regions can have the same name. In that case, region_check checks all regions with the given name.

Edition:

A8

Example:

region_create("portal1",vector(1000,1000,-100),vector(2000,2000,100));

See also:

path_set, region_set, region_find, region_check, region_get

► latest version online