Author: desrat
Author Website:

Requirements: Community Base addons A3

Version: 1.2

Short description: This script counts all available positions in radius, and spawns the units for you.

Date: 2013-03-23 13:27


Comments: (3)
Rating:



 

Random House Garrison Script [ALPHA]

by
Desrat


Description:
I was looking to populate buildings with enemies and having put this together over the last couple of days thought someone else may get some use from it too.
Script counts all available positions in radius, and spawns the units for you. It currently selects 10% of the total available positions at random and makes sure no duplicates (or really close) are spawned.


Usage:
_h = ["marker_name"(string), Max Distance from center to spawn(number), side (number 1=east, 2=west), Debug Markers(true - optional)] execVM "RndmHse.sqf;

Example:
_h = ["Target_Area", 100, 1, true] execVM "RndmHse.sqf";

This comes with an example mission.


Changelog:
v1.2
- Increased distance between spawned units.
- Some units will now patrol their building instead of remaining static.

v1.1
- CBA no longer required


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Building,   House,   Random