slave units
Started by under-mountain, Jun 05 2010 03:21 PM
3 replies to this topic
#1
Posted 05 June 2010 - 03:21 PM
I've read the tutorial about how to make Aragorn coming with 10 Gondor Soldier bodyguards (when you build him) but it doesn't work for bfme II or rotwk I think. Anyone know how we can make it work for bfme II or rotwk? thanks n.
#2
Posted 05 June 2010 - 03:39 PM
First you need to create the bodyGuard SLAVEI've read the tutorial about how to make Aragorn coming with 10 Gondor Soldier bodyguards (when you build him) but it doesn't work for bfme II or rotwk I think. Anyone know how we can make it work for bfme II or rotwk? thanks n.
Put this at the very end of GondorFighter.ini
and put a reference in explevels.ini
CODE
//------------------------------------------------------------------------------
ChildObject GondorFighter_B GondorFighter
IsTrainable = No
CommandPoints = 0
EquivalentTo = GondorFighter
RadarPriority = UNIT
KindOf = PRELOAD CAN_CAST_REFLECTIONS INFANTRY PATH_THROUGH_EACH_OTHER SCORE CAN_BE_REPULSED
CommandSet = EmptyCommandSet
Body = ActiveBody ModuleTag_02
CheerRadius = EMOTION_CHEER_RADIUS
MaxHealth = 500 ;GONDOR_TOWERGUARD_HEALTH
MaxHealthDamaged = GONDOR_TOWERGUARD_HEALTH_DAMAGED
BurningDeathBehavior = Yes
BurningDeathFX = FX_InfantryBurningFlame
End
Behavior = SlavedUpdate ModuleTag_Slave
GuardMaxRange = 100
GuardWanderRange = 100
UseSlaverAsControlForEvaObjectSightedEvents = No
DieOnMastersDeath = Yes
FadeOutRange = 0
FadeTime = 1000 //in msec
End
End
Then put this in Aragorns's ini
CODE
Behavior = QueueProductionExitUpdate ModuleTag_017
UnitCreatePoint = X:-5.0 Y:-5.0 Z:0.0
NaturalRallyPoint = X:10.0 Y:10.0 Z:0.0
ExitDelay = STANDARD_HORDE_EXIT_DELAY
PlacementViewAngle = 45
End
Behavior = SpawnBehavior ModuleTag_Spawn
SpawnNumber = 10
InitialBurst = 1
SpawnTemplateName = GondorFighter_B
SpawnReplaceDelay = 4500
CanReclaimOrphans = Yes
End
That should do it ... Repeat for other units eg. Archers / Towerguards
#3
Posted 05 June 2010 - 06:06 PM
About Aragorn. Do I have to put the codes after the "ART PARAMETERS" sentence or after the whole stuff that follows that specific sentence?
#4
Posted 05 June 2010 - 08:57 PM
Any where as long as its not interfering with other code blocks ...About Aragorn. Do I have to put the codes after the "ART PARAMETERS" sentence or after the whole stuff that follows that specific sentence?
Just put it above the
;///////////////////
; AISpecialPowers
;///////////////////
To be safe