Home   Help Search Login Register  

Author Topic: Plzz answer my Question! Doolittle Vehicle REspawn  (Read 507 times)

0 Members and 1 Guest are viewing this topic.

DarkCell

  • Guest
Plzz answer my Question! Doolittle Vehicle REspawn
« on: 24 Oct 2003, 00:45:32 »
I realy need help with this Vehicle Respawn PRoblem at the Multyplayer section nobody answers my question so that's why I asking it in this section where all the Problems get solved  ::) So plz admin don't remove it from here  :-\

Can someone Help me with the vehicle respawn problem becease every time I get outa the vehicle it disapears and respawns at the point where I took it but that's not all!!
The Vehicle Respawns Double as well!  :o
So instead of 1 vehicle now there are 2  :-\

Plz help me I REALY need help! Thnx for the person who can solve my problem!   :)

This is how my script looks like so plz tell me what's wrong with it becease I got it from this site :
 
Quote
;by Doolittle
_obj = _this select 0

?not local Server : exit
_vdelay = 150
?count _this > 1 : _vdelay = _this select 1

_air = ["Cobra", "Cessna", "A10LGB", "A10", "AH64", "Kamov", "Mi17", "Mi24", "OH58", "Su25", "UH60", "UH60MG"]
_armored = ["BMPRes", "BMP2", "BMP", "BoatE", "BRDM", "CarrierW", "M2StaticMGE", "M2StaticMG", "M113", "M1Abrams", "Bradley", "M60", "BoatW", "ZSU", "T55G", "T72Res", "T72", "T80Res", "T80", "Vulcan"]
_car = ["Truck5tOpen", "Truck5t", "Kolo", "Bus", "SkodaBlue", "SkodaGreen", "SkodaRed", "Skoda", "Mini", "HMMWV", "GJeep", "JeepPolice", "JeepMG", "Jeep", "Jawa", "TruckV3SCivil", "TruckV3SG", "Scud", "RapidY", "Rapid", "Trabant", "Tractor", "UAZG", "UAZ", "Ural"]
_support = ["Truck5tReammo", "BMPAmbul", "M113Ambul", "TruckV3SGReammo", "TruckV3SGRefuel", "TruckV3SGRepair", "Truck5tRefuel", "Truck5tRepair", "SGUAZG", "UralReammo", "UralRefuel", "UralRepair"]
_vehicle = _air + _support + _armored + _car

_pos = getPos _obj
_dir = getDir _obj

_i = 0
_c = count _vehicle
_type = 0
#count
?_vehicle select _i countType [_obj] != 0 : _type = _i; _i = count _vehicle
_i = _i + 1
?_i < _c : goto "count"

#init
_t = 0

#alive
~1
?not alive _obj : _delay = _vdelay; goto "notalive"

?fuel _obj == 1 : goto "init"
?count crew _obj != 0 : goto "init"

?_t == 0 : _t = _time + vdelay
?_t > _time : goto "alive"

#notalive
~_delay

deleteVehicle _obj
~1
_obj = _vehicle select _type createVehicle _pos
_obj setDir _dir
goto "init"

_hammy_

  • Guest
Re:Plzz answer my Question! Doolittle Vehicle REspawn
« Reply #1 on: 24 Oct 2003, 02:59:12 »
i dont know much about multiplayer or respawning, but, it looks like it would work to me.

This really should go into the multiplayer section ;)

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Plzz answer my Question! Doolittle Vehicle REspawn
« Reply #2 on: 25 Oct 2003, 03:41:20 »
Darkcell, we have different forum categories for a reason.

There are some helpful and talented people in your other thread working through the problem with you, I don't see what the problem is. I ask that you respect our rules, and stick to 'one thread per question'.

All replies to this topic to here.

# Topic Locked