#
3.4 Garages
Garages in ARL allow players to store their owned vehicles and later retrieve them.
They are prefab-driven and work out of the box with the included Garage NPC prefabs.
#
Prefabs
Garage prefabs can be found in:
ArmaReforgerLife/Prefabs/Garage/
#
Recommended workflow
- Inherit a prefab from
Prefabs/Garage/
into your addon. - Place the inherited garage prefab in your world/subscene.
- Add a VehicleSpawner as a child:
ArmaReforgerLife/Prefabs/MP/Spawning/ARL_VehicleSpawner.et
- Save and test.
ARL_MapMarkerComponent is already added when inheriting from the standard prefab.
#
Behavior
Tip
Vehicle data is not stored on the garage itself.
Instead, every player has an ARL_PlayerGarageComponent which keeps track of their stored vehicles.
This means garages act only as interaction points for storing/retrieving, while the actual list of vehicles belongs to the player.
- Players can store nearby owned vehicles at the garage NPC.
- Stored vehicles are linked to the player and can later be retrieved at the same garage.
- Vehicles spawn at the VehicleSpawner child of the garage prefab.
- Occupants are automatically ejected when a vehicle is stored.
#
Troubleshooting
- Vehicle not found → Ensure the garage prefab is placed with enough space around it.
- Vehicle not spawning → Check if a VehicleSpawner child is added.
- UI not opening → Make sure you are using the inherited prefab which includes the user actions.