GwNavTagVolume - stingray.GwNavTagVolume object reference - Stingray Lua API Reference

stingray.GwNavTagVolume object reference

Description

Represents a volume that tags the NavMesh dynamically.

Enumerations

TagVolume Integration Status

Functions

Parameters

self :

stingray.GwNavTagVolume

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns
This function does not return any values.
Parameters

nav_world :

stingray.GwNavWorld

The GwNavWorld to create this GwNavTagVolume in.

polyline :

table

A table of at least three Vector3

min_altitude :

number

Altitude min to extrude the polyline

max_altitude :

number

Altitude max to extrude the polyline

is_exclusive :

boolean

Whether the NavTag associated with this obstacle causes the NavMesh to be untraversable.

color :

stingray.Quaternion?

The Color you would like the GwNavTagVolume to tag the NavMesh with. If nil, default color is applied. Unused if is_exclusive is true.

The ? notation indicates that this type is optional: there may be zero or one instances of it.

layer_id :

number?

The layer you would like to associate with this GwNavTagVolume. Unused if is_exclusive is true.

The ? notation indicates that this type is optional: there may be zero or one instances of it.

smartobject_id :

number?

The smartobject you would like to associate with this GwNavTagVolume. Unused if is_exclusive is true.

The ? notation indicates that this type is optional: there may be zero or one instances of it.

user_data_id :

number?

The user data you would like to associate with this GwNavTagVolume. Unused if is_exclusive is true.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

stingray.GwNavTagVolume

The created GwNavTagVolume.

Parameters

self :

stingray.GwNavTagVolume

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns
This function does not return any values.
Parameters

self :

stingray.GwNavTagVolume

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns

stingray.GwNavTagVolume.IntegrationStatus

The TagVolume integration status

Parameters

self :

stingray.GwNavTagVolume

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns

boolean

Indicates whether or not the NavTag is exclusive: i.e. whether or not it can be navigated.

stingray.Quaternion

Indicates the color of the NavTag.

integer

Indicates the ID of the layer associated with the NavTag.

integer

Indicates the ID of the smartobject associated with the NavTag.

integer

Indicates the userdata associated with the NavTag.

Parameters

self :

stingray.GwNavTagVolume

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns
This function does not return any values.

It will not be destroyed, just removed and can be added again later.