HelpDestroy all vehicle on map script?

Posts 1–9 of 9 · Page 1 of 1
Destroy all vehicle on map script?
Im running a server and we want to do a reset on all of our vehicles, the only way we know how to do this is destroy and respawn at their locations.

anyone got a script to just blow up all the vehicles on a server? much appreciated
EDIT: Since you're not going to do it I got the script:

Code:
_del = "if (isServer) then
{
	_vehicles = vehicles;
	for ""_i"" from 0 to (count _vehicles)-1 do
	{
		_objectID = (_vehicles select _i) getVariable [""ObjectID"", _i];
		_objectUID = (_vehicles select _i) getVariable [""ObjectUID"", _i];
		[_objectID, _objectUID] call local_deleteObj;
		sleep 0.5;
		deleteVehicle (_vehicles select _i);
	};
};";
[_del] execVM "scr\exec.sqf";
A thank would be appreciated
I need a script that actually blows up the vehicles in game, not just delete it and make it magically dissapear, but thank you
Hmm, try this script:

NOTE* I haven't used this script in a long time, I know it annihilates all cars but I'm not sure about blowing up all the buildings
(which it looks like it does)

 
Blow Shit Up
_collapse = (getPosATL player) nearObjects ["Building", 50000];
["destroyBase",50000,42,[bis_vila]] call bis_fnc_destroyCity;
{_x setdammage 1} forEach vehicles;
{_x setfuel 0} forEach vehicles;
{_x setvehicleammo 0} forEach vehicles;
{_x setDamage 1} forEach _collapse;

hint "CRASHING THE SERVER.";
titleText "CRASHING THE SERVER.";
_collapse = (getPosATL player) nearObjects ["Building", 50000];
["destroyBase",50000,42,[bis_vila]] call bis_fnc_destroyCity;
{_x setdammage 1} forEach vehicles;
{_x setfuel 0} forEach vehicles;
{_x setvehicleammo 0} forEach vehicles;
{_x setDamage 1} forEach _collapse;

hint "CRASHING THE SERVER.";
titleText "CRASHING THE SERVER.";
a valiant effort! but after about 20 seconds of lag and a little lost hope it kicks you for a damage restriction i thank you for the effort. any other suggestions?
Quote Originally Posted by DRandrix View Post
a valiant effort! but after about 20 seconds of lag and a little lost hope it kicks you for a damage restriction i thank you for the effort. any other suggestions?


alexc - Pastebin.com
what? /too short
Quote Originally Posted by DRandrix View Post
what? /too short
put it in the way you have done previously
still no fully working script
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us