Here's my faction unit command set upgrade code:
Code:
Behavior = ObjectCreationUpgrade ModuleTag_30
UpgradeObject = OCL_DropRanger
TriggeredBy = Upgrade_DropRanger
ConflictsWith = Upgrade_DropHumvee
End
Behavior = ObjectCreationUpgrade ModuleTag_31
UpgradeObject = OCL_DropHumvee
TriggeredBy = Upgrade_DropHumvee
ConflictsWith = Upgrade_DropRanger
End
Behavior = CommandSetUpgrade ModuleTag_40
CommandSet = AmericaJetHerculesRangerCommandSet
TriggeredBy = Upgrade_RangerDropUpgrade
Upgrade_ChinaOverlordBattleBunker
End
Behavior = CommandSetUpgrade ModuleTag_41
CommandSet = AmericaJetHerculesHumveeCommandSet
TriggeredBy = Upgrade_DropRanger
Upgrade_ChinaOverlordBattleBunker
End
Behavior = CommandSetUpgrade ModuleTag_42
CommandSet = AmericaJetHerculesCommandSet
TriggeredBy = Upgrade_DropRanger
Upgrade_ChinaOverlordBattleBunker
End
Behavior = CommandSetUpgrade ModuleTag_43
CommandSet = AmericaJetHerculesCommandSet
TriggeredBy = Upgrade_DropHumvee
End
The first one works, fine, along with the two ranger command set changes, but the others don't work, and thats where I get the conflicting upgrade problem.
Here's the upgrade.ini:
Code:
Upgrade Upgrade_DropRanger
DisplayName = UPGRADE:ScoutDrone
Type = OBJECT
BuildTime = 0.0;5.0
BuildCost = 0;100
ButtonImage = SAScout
ResearchSound = ScoutDroneVoiceCreate
End
Upgrade Upgrade_RangerDropUpgrade
DisplayName = UPGRADE:ScoutDrone
Type = OBJECT
BuildTime = 5.0;5.0
BuildCost = 225;100
ButtonImage = SAScout
ResearchSound = ScoutDroneVoiceCreate
End
Upgrade Upgrade_DropHumvee
DisplayName = UPGRADE:ScoutDrone
Type = OBJECT
BuildTime = 0.0;5.0
BuildCost = 0;100
ButtonImage = SAScout
ResearchSound = ScoutDroneVoiceCreate
End
Upgrade Upgrade_HumveeDropUpgrade
DisplayName = UPGRADE:ScoutDrone
Type = OBJECT
BuildTime = 9.0;5.0
BuildCost = 700;100
ButtonImage = SAScout
ResearchSound = ScoutDroneVoiceCreate
End
OCL:
Code:
ObjectCreationList OCL_AmericaDropRanger
CreateObject
ObjectNames = AmericaInfantryRanger
PutInContainer = AmericaParachute
IgnorePrimaryObstacle = Yes
InheritsVeterancy = Yes
Disposition = RANDOM_FORCE
MinForceMagnitude = 10
MaxForceMagnitude = 12
MinForcePitch = 50
MaxForcePitch = 60
SpinRate = 0
InvulnerableTime = 2000;milliseconds
RequiresLivePlayer = Yes
End
End
;-------------------------
ObjectCreationList OCL_DropRanger
CreateObject
Offset = X:-8 Y:0 Z:-5 ;Spawn at backpack offset
ObjectNames = AmericaVehicleDropRanger
IgnorePrimaryObstacle = Yes
Disposition = LIKE_EXISTING
Count = 1
RequiresLivePlayer = Yes
End
End
ObjectCreationList OCL_AmericaDropHumvee
CreateObject
ObjectNames = AmericaVehicleHumvee
PutInContainer = AmericaParachute
IgnorePrimaryObstacle = Yes
InheritsVeterancy = Yes
Disposition = RANDOM_FORCE
MinForceMagnitude = 10
MaxForceMagnitude = 12
MinForcePitch = 50
MaxForcePitch = 60
SpinRate = 0
InvulnerableTime = 2000;milliseconds
RequiresLivePlayer = Yes
End
End
;-------------------------
ObjectCreationList OCL_DropHumvee
CreateObject
Offset = X:-8 Y:0 Z:-5 ;Spawn at backpack offset
ObjectNames = AmericaVehicleDropHumvee
IgnorePrimaryObstacle = Yes
Disposition = LIKE_EXISTING
Count = 1
RequiresLivePlayer = Yes
End
End
If you need anything else to try and fix it, post.
