Region nodes

From HEWIKI
(Redirected from Region)
Jump to: navigation, search
Region.jpg
A Region node defines arbitrarily shaped regions in the world, where HSL can be used to request a random point in the region, or determine whether or not some other given point is in the region or not. They are used by HSL scripters for multiple processes. For example, in Hero's Journey they are used for creature boundaries, to determine the limits of where a creature can walk.

They can be referred to by their GUID.

Contents

Creation

To create a region node, use the Create Menu and Create region.

Modification

When first created, they are a cube, just like a trigger node or pathfinding node.

Region nodes can be clicked and dragged, and the shape can be changed by dragging any corner.

New vertexes can be created by using the Select and Translate Tool. TranslateTool.png Click and drag one of the small circles along the edge of the Region Node, to create another vertex.

Each region node can be color-coded by modifying the COLOR property in the Region Node's properties panel.

Deletion

To delete a point, highlight it and click delete.

Functions

HSL functions on the client and server can return a random point inside the shape, or determine if a random point is or is not inside the node's space. Functions exist on both the server and client:

IsPointInRegion(regionNode as noderef, point as vector3) as boolean
 
RandomPointInInRegion(regionNode as noderef) as vector3

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox