The 3rd Age

Men's Knives

Men's Knives

Good mod in BFME2?With more Factions? and its coming? It's MEN'S KNIVES!

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!


Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Making patrols near buildings

Tutorial for Battle for Middle-earth II BFME 2, Battle for Middle-earth II: Rise of the Witch-king ROTWK

Avatar of bilbothehobbit


Category: Code
Level: Intermediate
Created: Thursday November 5, 2020 - 10:39
Updated: Thursday November 5, 2020 - 11:10
Views: 946
Summary: This tutorial will show you how to make buildings have patrols.


Staff says


Members say




0 votes

Page 1 2 3
To add the patrol to a building, such as the Elven Barracks, go to barracks.ini, which is located at data\ini\object\goodfaction\structures\elven, and add this somewhere in the file:

Behavior = SpawnBehavior ModuleTag_Spawn
    SpawnNumber = 2
    InitialBurst = 2
    SpawnTemplateName = LorienArcher_B
    SpawnReplaceDelay = 35000
    CanReclaimOrphans = Yes

SpawnNumber = 2 --> this line sets the amount of units of the type LorienArcher_B will be patroling.

SpawnTemplateName = LorienArcher_B --> This line sets which type of unit will come out, in this case it's the ChildObject LorienArcher_B, which we created last page.

SpawnReplaceDelay = 35000 --> after the unit dies, how long (in miliseconds) until he is being replaced.

And that should be it! I hope this tutorial helped you!

Go to top


"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."