Jump to content
Flash-Ranger

[MP/PvP] On player Disconnection = Replaced by AI

Recommended Posts

Hi !

 

For some reason, when a player disconnects, gets kicked, crash, he is replaced by an AI... 

 

I found this in the Init, would it be related to it ?

 

OnPlayerConnected {If (_uid In ID_Players) Then {} Else {ID_Players = ID_Players + [_uid];};};

 

Is there a way of not getting an AI everytime a player disconnects ?

 

Thx !

Share this post


Link to post
Share on other sites

i think this is a bug related to the new patch.

i havent tried this solution yet, but have a look here:

 

Share this post


Link to post
Share on other sites

That's what I thought ! Just needed to check. I'll open a Feedback Ticket to see if they can confirm this

 

Share this post


Link to post
Share on other sites
41 minutes ago, Flash-Ranger said:

That's what I thought ! Just needed to check. I'll open a Feedback Ticket to see if they can confirm this

 

no need, already fixed

Share this post


Link to post
Share on other sites

Since when lol... I just had the problem and there was no update since i posted this topic ...

Share this post


Link to post
Share on other sites
Quote
  • Fixed: The BIS_fnc_initRespawn handle disconnect event was returning true and causing units previously controlled by a disconnected player to be transfered to server and become AI (https://feedback.bistudio.com/T123785) 

 

Share this post


Link to post
Share on other sites

Ok so is the BIS_fnc_initRespawn something operating in the game automatically or is it something that should be in my mission ?

Share this post


Link to post
Share on other sites
30 minutes ago, Flash-Ranger said:

Ok so is the BIS_fnc_initRespawn something operating in the game automatically or is it something that should be in my mission ?

 

All you need to do now is chill and wait for the hotfix :) Alternatively you can get server mod from KOTH guys

  • Like 1

Share this post


Link to post
Share on other sites

Hello. I have a quick fix for you that works for me. This is a problem that has happened on my server and I have fixed it using this: 

addMissionEventHandler ["HandleDisconnect",
    {
        _unit = _this select 0;
        deleteVehicle _unit;
    }];

Just put that in your init.sqf and it will fix your issue.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×