The 3rd Age

Master Hero Mod 2.1.9

Master Hero Mod 2.1.9

Enhances Visuals, provide series of modifications and additions to the game play,Support Multiplayer

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

How to add slave units to a object

Avatar of man_of_gondor

man_of_gondor

Category: Code
Level: Beginner
Created: Saturday February 27, 2010 - 3:04
Updated: Friday August 27, 2010 - 19:13
Views: 6398
Summary: How to add slave units to a object

Rating

Staff says

2.0

Members say

4.3

Average

3.4/5.0

5 votes

Page 1 2
What do you have to do?

Well in fact it is very simple. In this tutorial i want to get Aragorn followed by some Gondor Soldiers. This is what you have to do:

You go to aragorn.ini. Under the ART PARAMETERS put this:

              
Code

AddModule
Behavior = QueueProductionExitUpdate ModuleTag_11
UnitCreatePoint = X:0.0 Y:0.0 Z:0.0
NaturalRallyPoint = X:0.0 Y:0.0 Z:0.0
ExitDelay = 50
End
end

AddModule
Behavior = SpawnBehavior ModuleTag_SpawnFighters2
SpawnNumber = 10
InitialBurst = 10
SpawnTemplateName = GondorFighter
SpawnReplaceDelay = 1000
CanReclaimOrphans = Yes
End
End


after that go to gondorfighter.ini and put this under the ART PARAMETERS:

              
Code

Behavior = SlavedUpdate ModuleTag_Slave
GuardMaxRange = 350
GuardWanderRange = 80
UseSlaverAsControlForEvaObjectSightedEvents = Yes
end


Thats all! Now aragorn will be followed by 10 gondor soldiers.

Hope this helps you

Man of Gondor and NOFX182

Comments

Display order: Newest first

modboy451 - Tuesday November 16, 2010 - 11:35

can you add a triggeredby tag to the code???

Rob38 (Team Chamber Member) - Friday August 27, 2010 - 19:13

Added the code boxes for you.

man_of_gondor - Saturday March 27, 2010 - 11:20

It will attack anything in range.

Please Rate people!!!

drogoth232 - Friday March 26, 2010 - 10:54

Will the slave just run around aimlessly and attack anything in range, or will it attack the same thing your hero is attacking?

man_of_gondor - Tuesday March 2, 2010 - 12:36

Thanks for youre comment RB, its my first one so i know it is not so good. There is a reason why i diddnt add codeboxes. Simply, i dont know how to add them

--------

EDIT: I meant second article :D

Ridder Blauw - Tuesday March 2, 2010 - 10:53

A tip, use codeboxes to make it organised. And try to improve your spelling.

man_of_gondor - Saturday February 27, 2010 - 8:59

Yes, it could work for BFME1. But i do not mod that one so i am not sure

Spartan184 - Saturday February 27, 2010 - 6:56

This works for bfme1 to prob with a few tweaks. I need to test it out.

NOFX182 - Saturday February 27, 2010 - 4:16

I hope too :)

man_of_gondor - Saturday February 27, 2010 - 3:46

Hi, i write this tutorial for NOFX182 and i hope it will help 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."

 
11:10:47