Forum Jump :

Author Message

Posts: 59

Level: Member

Country: ca
Location: Quebec
In-game name:

#186833 Posted at 2016-02-23 14:42        
Here is a modified version of my own script.
It will spawn a random number of units within buildings according to the number of houses in your radius.
Set up a marker, state the radius size, and choose the type of units to spawn.

// FUNCTION: nul = ["marker", radius, "unit type"] execVM "spawnInHouses.sqf";
// EXAMPLE:  nul = ["marker_One", 300, "WEST NATO INFANTRY UNITS"] execVM "spawnInHouses.sqf";
A random number of West NATO infantry soldiers will spawn within enterable buildings found in a 300m radius from "marker_One"

Here is the code for the script (you can modify it to your liking):

Tags: At, Fill, Help, How, Need, Some, To