API ReferenceGE Extensionsflowgraphnodesvehicle
Props Touch
- **Node Name:** `Props Touch`
Overview
- Node Name:
Props Touch - Category:
repeat_instant - File:
extensions/flowgraph/nodes/vehicle/touchingProps.lua
Checks if a vehicle is colliding with any prop from a given table of prop IDs.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Inflow for this node. |
vehId | number | ID of the vehicle to check collisions for. |
propsIds | table | Table of prop object IDs to check against. |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Always passes through. |
touching | flow | Active when the vehicle touches any listed prop. |
isTouching | bool | True when collision detected (hidden). |
Internals
Key Methods
| Method | Description |
|---|---|
init() | No-op. |
work() | Iterates over propsIds and checks each against the vehicle's objectCollisions. |
How It Works
- Reads the vehicle's
objectCollisionsfrommap.objects. - Iterates over every prop ID in the
propsIdsinput table. - If any prop ID is found in the collision table, sets
touchingflow andisTouchingbool to true and returns immediately.
Usage Example
-- Flowgraph:
-- [Cone IDs Table] → propsIds → [Props Touch] → touching → [Add Penalty]
-- ↑ vehId ← [Player Vehicle]
-- Checking prop collision in GE Lua:
local cols = map.objects[vehId].objectCollisions
for _, propId in ipairs(propIds) do
if cols[propId] then
-- vehicle is touching this prop
end
endKey Dependencies
map.objects[id].objectCollisions- per-vehicle collision table
See Also
- Align for Coupling (Flowgraph Node) - Related reference
- Apply Velocity to Vehicle (Flowgraph Node) - Related reference
- Boost Vehicle (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide