Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2010-12-06 06:12        
     
Hi all,
I just made a multiplayer mission and everything is just that way i wanted it except...
after playing the mission a few times with some friends i decided to try and make the vehicles respawn after they were destroyed
i went to the unit, double clicked it and added veh = [this] execVM "vehicle.sqf" to the Initilization section.
When previewing the mission i received "Script Vehicle.sqf not found."
Can someone point me in the right direction?? THanks!
,Scott


Author Message

VIPER[CWW]  

I'm a stable whore


Posts: 2125
Rank:


Level: Member

Country: en
Location:
Occupation:
Age: 30
In-game name: VIPER [RR]

 
#2 Posted at 2010-12-06 11:38        
     
Hi and welcome to Armaholic *HI*

So you've added the script callout to the init right? have you even added the script to the mission folder? thats why your getting the error because it is non-existent.

If you haven't got the script here it is:

// by Xeno
private ["_delay","_disabled","_moved","_newveh","_startdir","_startpos","_type","_vehicle"];
if (!isServer) exitWith {};

_vehicle = _this select 0;
//_delay = _this select 15;
_delay = 15;
_moved = false;
_startpos = getpos _vehicle;
_startdir = getdir _vehicle;
_type = typeof _vehicle;

while {true} do
{
  sleep (_delay + random 300);
  _moved = (if (_vehicle distance _startpos > 15) then {true} else {false});
  _empty = (if (({alive _x} count (crew _vehicle)) > 0) then {false} else {true});
  _disabled = (if (damage _vehicle > 0) then {true} else {false});
  if ((_disabled && _empty) || (_moved && _empty) || (_empty && !(alive _vehicle))) then
  {
    sleep 30;
    deletevehicle _vehicle;
    _vehicle = objNull;
    _vehicle = _type createvehicle _startpos;
    _vehicle setpos _startpos;
    _vehicle setdir _startdir;
  };
};

Open up a text editor like notepad and copy and paste that into there and rename the file

vehiclerespawn.sqf

Make sure before you safe its as all documents not just .txt files


Advertisement


Author Message


Posts: 1
Rank:


Level: Member

Country: ie
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2012-06-03 19:30        
     
excuse me but it still doesnt work for my arma. i put the script in the init line and my MISSION multiplayer folder, and saved it as all files
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\plz help me\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


Author Message


Posts: 521
Rank:


Level: Member

Country: us
Location:
Occupation:
Age: 45
In-game name:

 
#4 Posted at 2012-06-03 21:04        
     
Hello.
Use this script: http://www.armaholic.com/page.php?id=6080&highlight=SIMPLE+VEHICLE+RESPAWN+SCRIPT

put the script in the folder of your mission then for the vehicles you want to respawn put
this code in the vehicles init line put this code:

veh = [this] execVM "vehicle.sqf"


Author Message


Posts: 7
Rank:


Level: Member

Country: us
Location: United States
Occupation: Highschool Student
Age: 22
In-game name: M.Murakami

 
#5 Posted at 2013-05-28 23:25        
     
how can I make the vehicle not respawn when abandoned, I currently just make the timer huge.

I sneak in by land air and soon be sea.... Killin those Takis with a Dual core i5

Author Message


Posts: 521
Rank:


Level: Member

Country: us
Location:
Occupation:
Age: 45
In-game name:

 
#6 Posted at 2013-06-02 01:28        
     
Be sure you have the latest version of the script as it has been updated to v 1.7, the new version has a new function where deserted vehicles that respawn by default can be disabled, just look at the codes on the download page, link in my previous post.