Results 1 to 3 of 3

Thread: Respawn script!

  1. #1
    Hi Folks

    I am using the following script:






    _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 &#33;= 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"




    "BUT" when my vehicles respawn the crews and pilots etc are outside and won&#39;t get back in or move. WHAT DO I HAVE TO DO TO SORT THIS??

    Please Help&#33;

  2. #2
    eeeekkkk

    figured this was another respawn question from a n00b who aint search the forums.

    i would try comparing this to the vrs script over at OFPEC.&#92;
    ive always used that one without question and its always worked fine.

  3. #3
    http://www.ofpec.com/editors/resource_view.php?id=248

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •