Results 1 to 9 of 9
  1. #1
    DRandrix's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    1
    My Mood
    Brooding

    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


    Day Z
    Global Bans: 12
    Admin Bans: 50+

  2. #2
    Terror In Paradise's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    3,275
    Reputation
    235
    Thanks
    551
    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
    Last edited by Terror In Paradise; 04-10-2013 at 11:09 AM.
    Error 404 Signature Not Found

  3. The Following User Says Thank You to Terror In Paradise For This Useful Post:

    DRandrix (04-10-2013)

  4. #3
    DRandrix's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    1
    My Mood
    Brooding
    I need a script that actually blows up the vehicles in game, not just delete it and make it magically dissapear, but thank you


    Day Z
    Global Bans: 12
    Admin Bans: 50+

  5. #4
    SergeantSparklez's Avatar
    Join Date
    Mar 2013
    Gender
    female
    Posts
    99
    Reputation
    33
    Thanks
    25
    My Mood
    Breezy
    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)

     
    _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.";
    Last edited by SergeantSparklez; 04-10-2013 at 05:10 PM.
    iiiiiiliiiiiiiiiiiiii[IMG]https://i1055.photobucke*****m/albums/s518/retardo2/insanesig_zps5b97f72a.jpg[/IMG]

  6. The Following User Says Thank You to SergeantSparklez For This Useful Post:

    DRandrix (04-10-2013)

  7. #5
    DRandrix's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    1
    My Mood
    Brooding
    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?


    Day Z
    Global Bans: 12
    Admin Bans: 50+

  8. #6
    typh0's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    231
    Reputation
    10
    Thanks
    35
    My Mood
    Yeehaw
    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

    Skype: MrAlexc921

    Youtube: MrAlexc92

    Stream: MrAlexc





  9. #7
    DRandrix's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    1
    My Mood
    Brooding
    what? /too short


    Day Z
    Global Bans: 12
    Admin Bans: 50+

  10. #8
    typh0's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    231
    Reputation
    10
    Thanks
    35
    My Mood
    Yeehaw
    Quote Originally Posted by DRandrix View Post
    what? /too short
    put it in the way you have done previously

    Skype: MrAlexc921

    Youtube: MrAlexc92

    Stream: MrAlexc





  11. #9
    DRandrix's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    1
    My Mood
    Brooding
    still no fully working script


    Day Z
    Global Bans: 12
    Admin Bans: 50+

Similar Threads

  1. HACKER TOOK AWAY ALL VEHICLES US 2468 PLEASE SOMEONE RESPAWN THEM BACK IN MAP
    By jinkz510 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 9
    Last Post: 09-27-2012, 12:04 PM
  2. Selling LOADED BF3 - - - [Almost All Guns, B2K Map Pack, Limited Edition]
    By dat-ass in forum Selling Accounts/Keys/Items
    Replies: 2
    Last Post: 08-08-2012, 06:50 PM
  3. [Help Request] Destroy all objects command ?
    By Jianwei92x in forum Vindictus Help
    Replies: 9
    Last Post: 04-06-2012, 10:38 PM
  4. All Black Ops Maps + Trials HD + Just Cause 2
    By Hate in forum Selling Accounts/Keys/Items
    Replies: 3
    Last Post: 07-04-2011, 09:46 PM
  5. [Preview] All »« S&D »« Maps .
    By hadh in forum CrossFire Discussions
    Replies: 23
    Last Post: 06-21-2011, 11:30 AM