The 3rd Age

BFME 2: Arcade Edition

BFME 2: Arcade Edition

Throws out all the conventional rules of a RTS game and opens the game up like a playable cheat code

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

Avatar of bilbothehobbit

bilbothehobbit

Category: Code
Level: Intermediate
Created: Thursday November 5, 2020 - 10:39
Updated: Sunday March 20, 2022 - 16:53
Views: 3831
Summary: This tutorial will show you how to make buildings have patrols.

Rating

Staff says

-

Members say

-

Average

-

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
    TriggeredBy = Upgrade_NameOfDesiredUpgrade
End


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.

TriggeredBy = Upgrade_NameOfDesiredUpgrade --> This line will make the slaves start patroling only after the Object that you put this behavior in, the Elven Barracks in this case, will receive whatever upgrade you want. You don't have to include this line.

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."

 
14:24:32