Перейти к содержанию

ExplodeVehicle

Материал из RAGE MP Wiki Archive

Let's explode the specified vehicle.


void NAPI.Vehicle.ExplodeVehicle(Vehicle vehicle);

Parameters

  • vehicle: parameter input should be in Vehicle type

Example

<syntaxhighlight lang="csharp"> [Command("bigboom")] //Explodes every vehicle on the server

       public void BigBoomCommand()
       {
           foreach (Vehicle vehicle in NAPI.Pools.GetAllVehicles())
           {
               NAPI.Vehicle.ExplodeVehicle(vehicle);
           }
       }

</syntaxhighlight>