Upgrade InitialPayload
Hey, ive only just started looking at the ZH ini files recently, and ive been trying to do a few odds and sods to get used to the files and how they work. So far I havent run into to much I couldnt handle, but Im having a really bad time of figureing out how to upgrade the initial payload on a unit.
Basically, im using the demo generals combat cycle as a template, and im trying to get it to "Upgrade" to having an RPG man on the bike when a user purhases an upgrade.
Everything I have tried so far gives me the "ZH has encountered a serious error" Message that im getting to know and love.
Behavior = TransportContainUpdate Moduletag_24
;Standard TransportContain stuff
Slots = 1
InitialPayload = Demo_GLAInfantryWorker 1
ScatterNearbyOnExit = No
HealthRegen%PerSec = 0
DamagePercentToUnits = 100% ; This module will Delete the rider on death, but we need to kill him as well so he doesn't pick up the bike's salvage crate.
BurnedDeathToUnits = No ; And no Burned death.
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 1 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
TriggeredBy = Demo_Upgrade_SuicideBomb
End
theres an example of what I have tried, I also tried
Behavior = TransportContainUpdate Moduletag_24
InitialPayload = Demo_GLAInfantryWorker 1
TriggeredBy = Demo_Upgrade_SuicideBomb
End
and I tried using various names for the behavior, I know moduletag 24 is available, because it works if I copy another module (the commandset upgrade one at 23), Ive tried using my own names for the behavior, as well as names already in the file in case there was something behind the naming (Im pretty sure there isnt) (obviously, these examples arnt upgrading to the rpg trooper, nor are they using a real upgrade id use to do it, this is just copys using already in ini files items.)
Does anyone have any idea what im doing wrong? (I know its probably really simple and im forgetting something really easy, but...)
Thanks for your time
Pill
|