Spawn Vehicle
Spawn Vehicle¶
Spawns a vehicle from the database at a specified position on a map.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Map ID | The ID of the map to spawn the vehicle on. | Variable or Value |
| Result | The variable to store the spawned vehicle's unique ID in. | Variable or Value |
| Store ID | Whether to store the unique ID of the spawned vehicle in a variable. | Toggle |
| Vehicle | The vehicle definition from the database to spawn. | Variable or Value |
| X | The X coordinate to spawn the vehicle at. | Variable or Value |
| Y | The Y coordinate to spawn the vehicle at. | Variable or Value |
| Z | The Z coordinate to spawn the vehicle at. | Variable or Value |
Examples¶
Spawn Vehicle 0 on Map 1 at Position (5, 0, 5)¶
This spawns vehicle definition 0 on map 1 at coordinates (5, 0, 5).
{"Data":{"VehicleID":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"MapID":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"X":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"5","VariableIndex":0,"Metadata":null},"Y":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Z":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"5","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Entity.VehicleSpawnVehicleCommand"}