BlackDeath 0 Posted April 7, 2002 i have it so if the jeep is destroyed it will respawn, but i also want it to respawn even if its not destroyed so i dont have to walk 1000 meters to my next waypoint, and pick the jeep up again, is there any way i can do this? Share this post Link to post Share on other sites
KaRRiLLioN 0 Posted April 8, 2002 what kind of vehicle respawn script are you using? I'm assuming that there is a method of determining the position and direction for the jeep to appear in after it respawns. If so and you want the jeep to respawn where you are then you can name your player and have the postion be calculated something like: _pos=Getpos Player1 OR you could simply have it respawn where it died with _pos=Getpos _vcl It depends upon the script that you're using. Share this post Link to post Share on other sites
Wreck-It 0 Posted April 9, 2002 my SQS for Vc re-spawn just wont work. I'm pretty sure my inits or correct but i get some error on "number" crap at every time a re-spawn should occure. help me, please! Share this post Link to post Share on other sites
BlackDeath 0 Posted April 9, 2002 no script, i used a tutorial from www.ofpeditingcenter.com but it doesnt seem to work =/ Share this post Link to post Share on other sites
KaRRiLLioN 0 Posted April 9, 2002 Just copy and paste the following into a file named vrs.sqs. For every vehicle that you want to respawn it's easy to implement. Create a vehicle. In the initialization field of the vehicle put in this: [this]exec "vrs.sqs" Then you can copy and paste as much as you want and just change the vehicle type to whatever you want. If you look at the script you can see that it detects vehicle types by going through a list of them and seeing if it matches that type. If you don't see it listed below, add the correct type name to the list. You probably won't have to do that unless you're using addons though. The way the position and direction are determined is right when the script executes at the start. The position and direction the vehicle starts in will be the area that it is respawned into. If you want the vehicle to respawn where it dies, then move the lines _dir=Getdir _vcl _position=Getpos _vcl and place them after this line in the script: deleteVehicle _vcl Then the direction and position will be determined from where the vehicle died. If you want the vehicle to spawn near a certain person, then that can be done as well. Simply change the lines to read like this: _dir=Getdir Player1 _position=Getpos Player1 where Player1 is the name that you give a specific unit in the mission editor. There are other ways of doing this, but this might be the easiest for you. I hope it helps! Simply copy and paste everything below into a file named vrs.sqs, place that file in the directory of your mission, and you should be set. ;;BEGIN vrs.sqs ;;By KaRRiLLioN ;; ;;IMPORTANT: ADD A GAMELOGIC NAMED Server ;;to the mission to prevent multispawn ?!(local Server): Goto "end" _vcl = _this select 0 _respawndelay = 5 _dir=Getdir _vcl _position=Getpos _vcl _Vehicles=[] _WTrucks=["Truck5tOpen","Truck5tRepair","Truck5tReammo","Truck5t Refuel","Truck5t"] _ETrucks=["UralRepair","UralReammo","UralReFuel","Ural"] _CivTrucks=["TruckV3SGCivil","TruckV3SGRefuel","TruckV3SGRepair"," TruckV3SGReammo","TruckV3SG"] _Jeeps=["JeepMG","GJeep","HMMWV","UAZ","SGUAZG" ,"UAZG","Jeep"] _Cars=["Tractor","Rapid","RapidY","Skoda","SkodaBlu e","SkodaRed","SkodaGreen","Trabant"] _Helos=["Cobra","AH64","CH47D","OH58","UH60MG", "UH60","Mi24","Mi17"] _Planes=["Cessna","A10LGB","A10","SU25"] _WArmor=["M1Abrams","M60","Bradley","M113Ambul","Vulc an","M113","BoatW","M2StaticMG"] _EArmor=["T80","T72","BMP2","BMPAmbul","BMP",&qu ot;BRDM","BoatE","ZSU","T55G"] _Other=["Mash"] _Vehicles=_WTrucks+_ETrucks+_CivTrucks+_Jeeps+_Cars+_Helos+_Planes+_WArmor+_EArmor+_Other _i = 0 #Loop ? (_i > (Count _Vehicles)) : Goto "Skip" _VehicleType = _Vehicles Select _i _VehicleTypeDoesMatch = ((_VehicleType CountType _this) == 1) ? _VehicleTypeDoesMatch : _type = _VehicleType ? _VehicleTypeDoesMatch : Goto "Skip" _i = _i + 1 Goto "Loop" #Skip #start ~1 @!(Canmove _vcl) ~_respawndelay deleteVehicle _vcl _vcl = _type createVehicle _position _vcl setdir _dir Goto "start" #end Exit ;;END vrs.sqs Share this post Link to post Share on other sites
BlackDeath 0 Posted April 11, 2002 script didnt seem to work for me. Share this post Link to post Share on other sites