Jump to content
Sign in to follow this  
Softegg

Disconnected players in mp

Recommended Posts

is the a way to check if a unit, that was player controlled before, now is an AI-controlled unit?

i have disabled the existence of AI-players with:

disabledAI=1

but if a player disconnects while the game is running, the unit remains in the game, but is now under AI-control.

the problem is: in my mission, all players have to pass some checkpoints. if all players are within the checkpoint, the mission continues.

but a disconnected player never will reach the checkpoint and so the other players are unable the continue the mission.

if i can point out the AI-units, i can reduce the counter of the units that have to reach the checkpoint.

(don't tell me to sent the unit to the waypoint with "domove", because some checkpoints are on islands and the units are not in a group).  wink.gif

Share this post


Link to post
Share on other sites

Use the domove command smile.gif

Maybe you could detect if the unit has been inactive for a while by getting its possition then using delete unit to get rid of it?

RED

Share this post


Link to post
Share on other sites

You could do it by radio-call.

What i mean is:

create a radio-call trigger, activation repeatedly, and

delete all playable units. AFAIK, player controlled units

won't become deleted.

And for the reason, that some guys could start playing

around with that radio-call, don't worry it doesn't matter.

Syntax: deletevehicle unitname

This option would just improve the gameplay, so nobody,

playing this map, would have a grant against that radio

call i think.

~S~ CD

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
Sign in to follow this  

×