Random spawn of a Unit
#1
Posted 06 March 2008 - 08:20 PM
#2
Posted 06 March 2008 - 08:26 PM
#3
Posted 06 March 2008 - 09:33 PM
;------------------------------------------------------------------------------ ;Creating this peasant will [b]randomize[/b] between several variations of the peasant. ;------------------------------------------------------------------------------ Object RohanPeasant SelectPortrait = UPRohan_Peasant Draw = W3DScriptedModelDraw ModuleTag_01 DefaultModelConditionState ;Give it a model so it'll show up in WB Model = RUPsnt_1_SKN Skeleton = RUPsnt_1_SKL End End Side = Rohan EditorSorting = UNIT [b]BuildVariations = RohanPeasant1 RohanPeasant3 RohanPeasant4[/b] KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS INFANTRY PATH_THROUGH_EACH_OTHER SCORE THROWN_OBJECT SWARM_DOZER GRAB_AND_DROP DOZER EndAnd the RohanPeasant1 is an object... RohanPeasant3 is also one, and RohanPeasant4 is one...
Still, this can be used for hordes as well RohanPeasantHorde, RohanArcherHorde ect...
Still, you should put the in the buildcost and buildtime here though, if not you don't know what your paying
yes, this is from BFME1, but should work
The 4th Age version 0.8 has been released: Link
#4
Posted 06 March 2008 - 10:42 PM
#5
Posted 07 March 2008 - 05:39 AM
#6
Posted 10 March 2008 - 07:52 PM
Axed Head and A.I. Coder for S.E.E. and ... stuff
".. coding is basically boring. What's fun is finding out how things work, take them apart and then put them together in ways that were not intended nor even conceived."
#7
Posted 10 March 2008 - 10:44 PM
You put the MaxStimulationOfType (or whatever it is) to 1 in the Main one, and keep different revies in the real heroes...
I'm pretty sure this wouldn't be as nice when your acctually reviving them though... suddenly your reviving Aragorn instead of the dead boromir
Object RohanPeasant EditorSorting = UNIT MaxStimulationOfType = 1 [b]BuildVariations = RohanPeasant1 RohanPeasant3 RohanPeasant4[/b] KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS INFANTRY PATH_THROUGH_EACH_OTHER SCORE THROWN_OBJECT SWARM_DOZER GRAB_AND_DROP DOZER EndHaven't tested it, but it could work... I think..
edit: Might have to put the revive stuff into the main one too...
As I don't know if the hero will change his pictures...
Edited by Lauri, 10 March 2008 - 10:46 PM.
The 4th Age version 0.8 has been released: Link
#8
Posted 23 August 2008 - 03:30 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users