Skip to content

Remove Vehicle

Remove Vehicle

Removes a vehicle from the scene and its persistence data using its unique ID.

Properties

System

Name Explanation Type
Vehicle Unique ID The unique ID of the vehicle to remove. Variable or Value

Examples

Remove Vehicle by Unique ID from Global Variable 0

This removes the vehicle identified by the Unique ID stored in Global Variable 0 from the map.

remove_vehicle($gv[0]);
{"Data":{"VehicleUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Entity.VehicleRemoveVehicleCommand"}