Jump to content
  • 0

Randomly Spawned AI Bandit Camps


mgm

Question

Hey Guys,

 

I would like to add the nice "Randomly Spawned AI Bandit Camps" feature CCG has to my server, do any of you have a working code that you would like to share?

 

The code pieces/examples I am after are:

1) The SQF file which places a basic AI bandit camp in the map -- nothing major just a tent and a few barrels, table/chairs etc. [see screenshot in reference #2 below]

2) A method of placing those camps randomly on the map because from what I see SQF has exact coordinates.

3) A method of Sarge customization/files to attach static AIs to (dynamic) random spawn points. Not sure how this will work but there must be a way?

 

 

The script I would like to obtain/program will place "AI Bandit Camp" buildings on the map using the SQF, in a configurable number of spots. I'm thinking about 3 to 5 - to be performance tested.

Once the 'building's are placed on the map, next it should spawn a random number of AI Bandit units (I'm using Sarge AI) to guard it.

Once these are done, it should add a custom marker/warning script on the map. When a player gets say about 1000 metres close to one of the random spawn AI bandit camps, they should get a warning that it exists nearby so that even if the player don't have visual on the camp, they will be aware and might look for it & loot AI bodies.

 

References:

  1. In post there's a reference that it can be done using Sarge AI.
  2. In http://epochmod.com/forum/index.php?/topic/323-show-us-your-loadscreen/?p=17957 post there are pictures of their AI Bandit Camps which looks good to me.

Thanks in advance!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Adding the camps is easy enough to do, just make several camps and save each .sqf file, then use a script that randomly loads each one, that would happen each restart rather than via a trigger.

Getting Ai to spawn should be possible, call the Ai via the camps .sqf file.

 

Not sure how to add a marker though :unsure:

 

Have a look at how DZMS works, that spawns camps and Ai in the mission system.

I can help you setup WAI missions, with custom bases etc

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...