Jump to content
Sign in to follow this  
Ludo

Spawning Varying AI

Recommended Posts

Hello there!

I would like to point out firstly that the mission file that I am seeking to edit is for a DayZ server, the reason I am posting here is mainly that these forums seem to give more useful feedback and assistance than some others that are more specifically for DayZ, I hope this is acceptable.

What we currently have running successfully on our DayZ server, is various AI bandits spawning for the players to engage and loot.

Each bandit has it's own custom loadout, but they spawn together and patrol together.

Basically, what we are looking to do, is script the AI to spawn any one of multiple loadouts, rather than a specific one. Ideally, each loadout would have a different % of being sourced, giving the ability to make certain weapons rare to spawn without giving that weapon to one specific bandit. Plus this would make patrols simply more varying.

So basically, we want to have say 20 loadouts premade, and basically at startup each bandit spawn would source one of the 20 loadouts, each with a different chance of being chosen.

This may be more difficult or easy than I think it is, seems like it could be done with a simple array, but I personally do not have the skill to do something like this, and the person who personally handles the majority of our server's technical side only has limited ability and is a very busy guy. I have looked around for any existing code or even a guide but cannot find any.

Any advice or even direction to a useful source would be greatly appreciated.

Thank you.

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  

×