Results 1 to 5 of 5

Thread: Respawn Point

  1. #1

    Respawn Point

    Hi !

    How can i set a respawn point for the players ? And my chatsystem dont work on the Server.

    Any suggestions ?


    maxx

  2. #2

  3. #3
    Corporal maxx2504's Avatar
    Join Date
    Nov 5 2011
    Location
    Germany
    Posts
    62
    Author of the Thread
    Hi !

    I have another problem. I found a guide to respawn vehicle but it dont work. What text must i use for the vehicle.sqf ??? Are there any german players who can help ? im getting sick of english -.-


    maxx

  4. #4
    open notepad and paste:

    // Raunis vehispawn 1.0

    private ["_vehicle", "_delay", "_startpos", "_startdir", "_type", "_disabled", "_empty"];
    if (!isServer) exitWith{};

    _vehicle = _this select 0;
    _delay = _this select 1;
    _startpos = getpos _vehicle;
    _startdir = getdir _vehicle;
    _type = typeof _vehicle;

    while {true} do {
    sleep (_delay + random 15);
    if (({alive _x} count (crew _vehicle)) == 0) then {
    _disabled = (if (damage _vehicle > 0.9) then {true} else {false});
    if (_disabled || !(alive _vehicle)) then {
    deletevehicle _vehicle;
    sleep 0.5;
    _vehicle = _type createvehicle _startpos;
    _vehicle setpos _startpos;
    _vehicle setdir _startdir;
    };
    };
    };
    Save it as vehspawn.sqf <- NB! Very important that you save it as a *.sqf file and not as a ordinary text file.

    And it should be placed in your mission folder (folder containing your mission)

  5. #5
    Corporal maxx2504's Avatar
    Join Date
    Nov 5 2011
    Location
    Germany
    Posts
    62
    Author of the Thread
    Hi !

    thanks. works good. is there any chance to change the ammo of the ammo trucks to unlimited ?


    maxx

Posting Permissions

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