Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Script: Auto-destroy vehicles
« previous
next »
Print
Pages: [
1
]
2
3
Author
Topic: Script: Auto-destroy vehicles (Read 3223 times)
Jorgur
May 15, 2008, 12:09:30 PM
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).
Ad Bot
Advertisement
Ephialtes
May 15, 2008, 12:33:26 PM
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
tails
May 15, 2008, 12:35:34 PM
2 good scripts in a few minutes, Your on a roll
Jorgur
May 15, 2008, 12:54:23 PM
Wow, thanks for quick reply :)
Ephialtes
May 15, 2008, 12:55:20 PM
No problem, that Dogfight server you run is pretty fun.
Jorgur
May 15, 2008, 02:50:56 PM
Problem: Vehicles do not respawn
Quote from: Ephialtes on May 15, 2008, 12:55:20 PM
No problem, that Dogfight server you run is pretty fun.
:D
Ephialtes
May 15, 2008, 03:19:22 PM
Weird, It worked in the brief testing I did. I've removed the explosion so it should just respawn:
Jorgur
May 15, 2008, 03:36:38 PM
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
»
Ephialtes
May 15, 2008, 04:01:19 PM
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.
Jorgur
May 15, 2008, 04:53:50 PM
Works perfectly ;)
Jorgur
September 13, 2008, 06:16:42 PM
Could you port this to v9?
MegaScience
September 13, 2008, 08:56:48 PM
Still counts as super-bump ;_;
Ephialtes
September 13, 2008, 11:42:44 PM
Sure, download it here:
Server_VehicleRespawn.zip
Headcrab Zombie
September 13, 2008, 11:50:55 PM
Quote from: MegaScience on September 13, 2008, 08:56:48 PM
Still counts as super-bump ;_;
For a very good reason.
MegaScience
September 13, 2008, 11:51:36 PM
I know it is, but still...he could have made a new topic D:
Print
Pages: [
1
]
2
3
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Script: Auto-destroy vehicles