API ReferenceGE Extensionsflowgraphnodesgameplaysites
Location
**File:** `flowgraph/nodes/gameplay/sites/location.lua`
File: flowgraph/nodes/gameplay/sites/location.lua
Description: Unwraps a location for further inspection.
Category: repeat_instant Tags: scenario, sites
Input Pins
| Name | Type | Description |
|---|---|---|
location | table | Location Data. |
Output Pins
| Name | Type | Description |
|---|---|---|
name | string | Name of the Location |
pos | vec3 | Original Position of the Location |
hasNavPos | flow | If this location has a position on the navgraph. |
navPos | vec3 | Position projected onto the closest road. will be same as pos if no road can be found. |
roadSide | vec3 | Position on the side of the road (2m from the side). |
roadDir | quat | Direction of the road |
navRadius | number | Radius of the position projected onto the closest road. will be 5 if no road can be found. |
Methods
C:init(mgr, ...)C:postInit()C:updateKeys()C:drawCustomProperties()C:_executionStarted()C:work(args)C:_onSerialize(res)C:_onDeserialized(nodeData)
See Also
- File Sites - Related reference
- Location by Name - Related reference
- Locations by Tags - Related reference
- FlowGraph Guide - Guide