API ReferenceGE Extensionsflowgraphnodescareer
Garage Tutorial Util (Flowgraph Node)
- **Node Name:** `Garage Tutorial Util`
Overview
- Node Name:
Garage Tutorial Util - Category:
repeat_instant - File:
extensions/flowgraph/nodes/career/garageTutorialUtil.lua
Utility node for the garage tutorial that checks vehicle parking and repair status.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
parkedInGarage | bool | Whether a vehicle is parked in the garage (velocity < 0.25) |
isRepaired | bool | Whether the vehicle in the garage is fully repaired |
Behavior
work()- Every frame:- Gets the inventory ID of the vehicle in the closest garage via
career_modules_inventory.getInventoryIdsInClosestGarage(true). - If a vehicle exists and its velocity is below 0.25, sets
parkedInGarage = true. - Every 1 second (sim time timer), updates part conditions via
career_modules_inventory.updatePartConditions()if not walking. - Checks repair status via
career_modules_insurance_insurance.inventoryVehNeedsRepair()and outputs the inverse asisRepaired.
- Gets the inventory ID of the vehicle in the closest garage via
Key Dependencies
career_modules_inventory- vehicle inventory lookupscareer_modules_insurance_insurance.inventoryVehNeedsRepair()- repair status checkgameplay_walk.isWalking()- walking mode checkmap.objects- vehicle physics data (velocity)
Notes
- Uses
self.mgr.dtSim(sim time) for the part condition update timer. - Part condition updates are throttled to once per second to avoid performance issues.
See Also
- Add To Inventory (Flowgraph Node) - Related reference
- Career Vehicle Select (Flowgraph Node) - Related reference
- Set Tutorial Step (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide