Jump to content
engima

[SOLVED] AI player control when player leaves server

Recommended Posts

I use "disabledAI = 1" in my description.ext, but AI takes control over player units when players leave the server anyway. They should not. Why does that happen? In the lobby I can see clearly that the command is in action, since no AI can be selected or deselected.

 

I'm creating a new mission, so first I thought it was a bug in Arma. But earlier missions work just as before. Anyone?

 

EDIT:

I found it. I had an empty mission event handler "HandleDisconnect" that did not return any value. By default it returns true, meaning that the player unit dies when player disconnects.

  • Like 3

Share this post


Link to post
Share on other sites

That

2 hours ago, pierremgi said:

That's not exactly what is mentioned in BIKI. The formerly played unit continues to live.

 

That’s correct @pierremgi. I got the details wrong in my post above. Anyway, what I did was to remove the eventhandler completely and got it working with its default behavior.

 

  • 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

×