Jump to content
Sign in to follow this  
anessen

Spawning, despawning, saving groups of AI

Recommended Posts

Hi,

I'm building a multipalyer mission where I want to be able to spawn units into a town when a player goes within a certain radius of the town.

Then, if the players should leave the are, I want the AI unit's status to be stored until later, when a player comes back within range. The idea is to save server load by having a load of units sat around doing nothing when nobody is around to do anything to them.

I've had a few stabs at doing this myself, but it strikes me that someone, somewhere must have done this before.

Is there:

- A premade script that does this?

- A mission that does this (that I can depbo)?

- An easy way to achieve this?

Share this post


Link to post
Share on other sites

There are a few scripts/addons that adress this problem. Try to search around with "AI Caching" and you shall find.

DAC is an addon that allows this and more. But, it's an addon, and i know they're not always the best solution when going fo Multiplayer.

Share this post


Link to post
Share on other sites

Give em some links if your going to suggest something:

Caching script, highly recommend, I use it myself:

cB AI Unit Caching Demo

http://www.armaholic.com/page.php?id=10102

this script why it was suggest wont do what your posting about for your mission, this script has that concept, but the way it work is you will

walk /move in range and the script will reduce the numbers of AI so that your game does not lag.

As for your mission DAC will do what your looking to do:

Dynamic-AI-Creator (DAC)

http://www.armaholic.com/page.php?id=10621&highlight=DAC

you might want to review this page for DAC

DAC3 initialization tutorial (for DAC beginners)

http://forums.bistudio.com/showthread.php?99759-DAC3-initialisation-tutorial-%28for-DAC-beginners%29

Overall I like your idea anessen for the mission.

Hope that helps.

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  

×