API ReferenceGE Extensionsflowgraphnodesgameplaycrash
On Crash Detected
**File:** `flowgraph/nodes/gameplay/crash/onCrashDetected.lua`
File: flowgraph/nodes/gameplay/crash/onCrashDetected.lua
Description: Trigger a flow when a tracked vehicle starts or ends a crash.
Category: repeat_instant Tags: crash, vehicle, track, crashDetection
Output Pins
| Name | Type | Description |
|---|---|---|
startCrash | flow | The beginning of the crash. |
endCrash | flow | The end of the crash. |
vehId | number | The id of the vehicle that crashed. |
Methods
C:init()C:_executionStopped()C:reset()C:work()C:onVehicleCrashStarted(crashStartData)C:onVehicleCrashEnded(crashEndData)
See Also
- Remove Tracked Vehicle Crash - Related reference
- Track Multiple Vehicles Crash - Related reference
- Track Vehicle Crash - Related reference
- FlowGraph Guide - Guide