Miller *VRK* 0 Posted November 7, 2002 Well here i am stuck as ever, I have made multiple missions and they all require vehicle respawning, I have used 4 different scripts and variations of each script, I can get vehicles to respawn fine but here is the catch, they dont rearm. This is a bummer, i have had various errors depending on the script used, weapons = weaponds |# unknown operator _vehicles, or somethin like that, bye the bye this is for ver 1.46. I have rewritten the scripts i have made just a basic map with on guy and one vehicle, all the scripts work peeps have sent me them and i recieved a few through we sites or taken them from this forum, all designed by the finest scripters. So i was reading all the posts and though to my self it could be an addon, so i removed all the ones i did not know what they where, still no go,  anywho  If you are a genius or have a solution to this please help me  oh! and I have not tried reinstalling yet but it is looking to be an option here soon. perhaphs i shall install another copy on my other OS  Thanks ahead of time and hope some one can solve this without taking drastic measures!  OFP forever Captain InsaneO VRK's Main Site Share this post Link to post Share on other sites
r71 0 Posted November 7, 2002 This one will get the units to come back with ammo. ;;BEGIN vrs.sqs ;;By KaRRiLLioN ;;VehicleType Loop by Sefe ;;Original script by Backoff ;;Updated for 1.75 by Jaeger Neo ;;IMPORTANT: ADD A GAMELOGIC NAMED Server ;;to the mission to prevent multispawn ?!(local Server): Goto "end" _vcl = _this select 0 _respawndelay = 10 _dir=Getdir _vcl _position=Getpos _vcl _Vehicles=[] _WTrucks=["Truck5tOpen","Truck5tRepair","Truck5tReammo","Truck5t Refuel","Truck5t"] _ETrucks=["UralRepair","UralReammo","UralReFuel","Ural"] _CivTrucks=["TruckV3SGCivil","TruckV3SGRefuel","TruckV3SGRepair"," TruckV3SGReammo","Bus","TruckV3SG"] _Jeeps=["JeepMG","GJeep","HMMWV","UAZ","SGUAZG" ,"UAZG","JeepPolice","Jeep"] _Cars=["Tractor","Rapid","RapidY","Skoda","SkodaBlu e","SkodaRed","SkodaGreen","Trabant","Jawa",& quot;CHALLENGER"] _Helos=["Cobra","AH64","CH47D","OH58","UH60MG", "UH60","Kamov","Mi24","Mi17"] _Planes=["Cessna","A10LGB","A10","SU25"] _WArmor=["M1Abrams","M60","Bradley","M113Ambul","Vulc an","M2StaticMGE","M2StaticMG","M113","BoatW" ] _GArmor=["T80Res","T72Res"] _EArmor=["T80","T72","BMP2","BMPAmbul","BMP",&qu ot;BRDM","BoatE","ZSU","T55G","MX_Mirage"] _Other=["Mash"] _Vehicles=_WTrucks+_ETrucks+_CivTrucks+_Jeeps+_Cars+_Helos+_Planes+_WArmor+_GArmor+_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" #start ~2 @!(Canmove _vcl) ~_respawndelay deleteVehicle _vcl _vcl = _type createVehicle _position _vcl setdir _dir #Skip ?(_type=="cessna"):goto "cessna" ?(_type=="Mi17"):goto "Mi17" Goto "start" #Mi17 _vcl removemagazines "Rocket57x192" _vcl removeweapon "Rocket57x192" _vcl addweapon "MachineGun30" _vcl addmagazine "MachineGun30" goto "start" #cessna _vcl addmagazine "MachineGun30" _vcl addweapon "MachineGun30" _vcl addmagazine "MachineGun30" _vcl addweapon "MachineGun30" goto "start" #end Exit ;;END vrs.sqs If you are going to use the Cessna or the Mi17, you might want to fix the ammo load out back to normal. I also put 2 addons into this MX_Mirage and CHALLENGER. All you have to do is add [this]exec "vrs.sqs" to the init. line of the unit you want to spawn. Also IMPORTANT: ADD A GAMELOGIC NAMED Server to the mission to prevent multispawn. Share this post Link to post Share on other sites
r71 0 Posted November 7, 2002 I also need some help with part of the respawn script. I have been able to add 2 of the addons I have but cant get the others to work. I have to guess my way around all this script stuff because I dont know jack @#$% about computers. I want to add the new little birds and my other addons I have. this is the name for one of the little birds --> bas_ah6j I tried to add that like I did the other two addons I put in, but I just cant get them to work. I also tried the new dirt bike addon (sttklr250) , and still I got nothing. When the little bird blew up it came back as a cobra, and when the dirtbike blew up it came back as a normal bike. I have also tried this in a trigger --> Chopper_Unit = "bas_ah6j" createVehicle getMarkerPos "SomeMarker" It works but I dont know how to keep the unit with the same name so it will spawn over and over again. Share this post Link to post Share on other sites
Miller *VRK* 0 Posted November 7, 2002 I can use this script thanks R71 but I need one that works for 1.46, that script is for 1.75 or higher, I do edit in resistance but i really need a script that will work for 1.46, I am hopeing someone has encountered this before and has an answer! Â As for your addon question I would direct it to Karrillion he can help ya and if you see him tell him I need to understand how he set up the flags in his canyon clash map, I made a similar map that just needs the flags and respawn fixed so i can play them!VRK's Main Site Share this post Link to post Share on other sites
Hit_Sqd_Maximus 0 Posted November 8, 2002 Here is the 1.46 version of that same script if you want a vehicle to respawn with the original weapons (ie. the mi17) i think just get rid of the remove weapon part and just replace it w/ add weapon and add magazine. I think ;;BEGIN vrs.sqs ;;By KaRRiLLioN ;;VehicleType Loop by Sefe ;;Original script by Backoff ;;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 #specialinits ?(_type=="Mi17"):goto "Mi17" ?(_type=="cessna"):goto "cessna" ?(_type=="OH58"):goto "OH58" #start ~2 ?(Canmove _vcl):goto "start" ~_respawndelay deleteVehicle _vcl _vcl = _type createVehicle _position _vcl setdir _dir #specialrearming ?(_type=="cessna"):goto "cessna" ?(_type=="Mi17"):goto "Mi17" ?(_type=="OH58"):goto "OH58" Goto "start" #Mi17 _vcl removemagazines "Rocket57x192" _vcl removeweapon "Rocket57x192" _vcl addweapon "MachineGun30" _vcl addmagazine "MachineGun30" goto "start" #cessna _vcl addweapon "MaverickLauncher" _vcl addweapon "MachineGun30A10" _vcl addweapon "LaserGuidedBombLauncher" _vcl addweapon "ZuniLauncher38" _vcl removemagazines "MaverickLauncher" _vcl removemagazines "MachineGun30A10" _vcl removemagazines "LaserGuidedBombLauncher" _vcl addmagazine "MaverickLauncher" _vcl addmagazine "MachineGun30A10" _vcl addmagazine "LaserGuidedBombLauncher" _vcl addmagazine "ZuniLauncher38" goto "start" #OH58 _vcl removemagazine "LaserDesignatorOH" _vcl removeweapon "LaserDesignatorOH" goto "start" #end Exit ;;END vrs.sqs Share this post Link to post Share on other sites
Miller *VRK* 0 Posted November 9, 2002 I still am recieving errors left and right mostly saying it is not recognising the vehicles, any who I will keep checking the forum to see if anyone has a solution. Let me mention this, the respawns I have tried do work on other peeps PC's in their map making. This is a special case i guess, all scripts i have tried are 100% working and people have been using for a while on many maps! Thanks hoping fer a miricle! VRK's Main Site Share this post Link to post Share on other sites