Jump to content
Sign in to follow this  
misinformed

AI in playergroups in MP

Recommended Posts

So a player has a number of AI in his group and he's the leader. He disconnects from a mutiplayer game, the previously player AI groups locality then changes from the client to the server.

What exactly happens then? Do they still hold onto their group name? How does one reference them upon the player leaders disconnection?

Quote[/b] ]

Just a really quick 1st bash at trying something.

onPlayerDisconnected

{_x deletevehicle} foreach units group player

I'll have it running server side to clean away AI. But how exactly do you use the cmd. Can i just chuck it in a sqs/sqf and leave it there on its lonesome to be "launched whenever a player is disconnected from a MP session." as the biki says. Its not clear at all.

"[_id,_name]" - Can i reference the id and name of the player and delete the group that way? can it be chucked in a several second loop?

Ideally i dont want a trigger going off every 0.5 secs checking this thing. The dedicated will have enough other stuff chewing through cpu time.

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  

×