Author Topic: Script: Auto-destroy vehicles  (Read 3223 times)

I need a quick script that destroys vehicles, say 5 minutes after inactivity. This should only apply after a player has entered, and then left the vehicle (or if the vehicle is a certain distance away form its spawn point).

Here you go, this should work a treat. You can edit it to change the blowup time. Basically i've made it so that it blows up the vehicle if:

  • Its more than 100 from its spawn
  • It doesnt have a driver
  • It's been driverless and 100 away for over 5 minutes

2 good scripts in a few minutes, Your on a roll :cookieMonster:

Wow, thanks for quick reply :)

No problem, that Dogfight server you run is pretty fun.

Problem: Vehicles do not respawn

No problem, that Dogfight server you run is pretty fun.
:D

Weird, It worked in the brief testing I did. I've removed the explosion so it should just respawn:


Now nothing happens. Maybe some of my addons cause it.
I'll do some additional testing.

EDIT: Disabled ALL addons, except script_vehicleblowup, support_jeep and vehicle_jeep. Still no respawning.
« Last Edit: May 15, 2008, 03:46:22 PM by Jorgur »

Thanks for the console shot. I was using V9 to test this, which has a respawnVehicle command for bricks. I've changed it to the V8 one so this should explode and be fine.


Could you port this to v9?

Still counts as super-bump ;_;



I know it is, but still...he could have made a new topic D: