Vehicle Spawner
Spawn vehicles for players to use.
Introduction
Vehicle Spawner is the garage door that drivable vehicles roll out of, ready for a player to hop in. The spawner keeps one vehicle per player. The first vehicle that rolls out already counts as claimed, and when the spawner produces its next vehicle, the previous one disappears. This keeps the world free of parked vehicle spam while every player still gets their own ride: player 1 on a bike does not take anything away from player 2, because each player claims and uses their own vehicle. The Vehicle Spawner component panel in the Uni editor Image The Vehicle Spawner component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Vehicle Spawner. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Properties
Vehicle The vehicle this point produces. Model Button The visual look of the spawner itself, in its two states. Auto Respawn Bool Produces a fresh vehicle when the old one drives away or when the spawner spawns again. The previous vehicle is removed first, so vehicles never pile up in the world. Cooldown Float The wait before the next vehicle appears. Spawn Control Channel The old signal line for remote spawning. No longer maintained. Scripts are the recommended way now. Property Type Description Every property on the Vehicle Spawner component.
Events
When Vehicle Refreshes Fires when a new vehicle appears at the spawner. None When Vehicle Is Picked Up Fires when a player drives the vehicle away. Event Description Parameter Every event on the Vehicle Spawner component. Each event links to its full guide, where its parameters and example live.
Commands
Spawn Produces a vehicle immediately. None Command Description Parameter Commands that drive the component from a script.
Example
Spawning a bike Vehicle Spawner - Simple Example