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

ExplodeVehicle

Материал из RAGE MP Wiki Archive
Версия от 17:47, 12 декабря 2019; imported>Avoid (boom boom command)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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>