Jump to content

Sign in to follow this  
ANZACSAS Steven

Deleting squad ai onplayerdiconnect help

Recommended Posts

I have a mission where players can recruit ai and work with squads.

I would like some help scripting a feature into the mission that deletes players "unwanted" ai when they disconnect from the mission.

I have seen this done in Evolution but i have very limited scripting capability and have been unsuccessfull in all my attempts to "extract" it from inside the mission.

I had an idea that if someone knows how this is done and has some time free it be nice to release a template mission to the community that just has an ai recruit(create) script running on a flagpole and that also has the scripting to delete the unwanted ai after player disconnects.For the benefit of the large Mp community.:)

I have been using the recruit function for along time now and is very popular.I have had a lot of people asking me to use my scripts i made gonig from OFPEC guides. So i know first hand how needed this "feature " is to multi-player mission makers.

Steve.

Share this post


Link to post
Share on other sites

every AI recruited spawns a simple looping script which checks for who its squad leader is. if the leader isn't a player, it means the player disconnected and it's time to delete the AI guy.

That's how it's done in evo but I'm not near the scripts to paste them in now

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  

×