Im trying to create a new paradrop for the UK side in my mod it works but it still drops rangers and not Royal Marines like I want it to
ObjectCreation
Code:
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_Paradrop1UK
DeliverPayload
Transport = AmericaJetCargoPlane
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 4
DropOffset = X:0 Y:0 Z:-10
DropDelay = 150 ; time in between each item dropped (if more than one)
ParachuteDirectly = Yes ; will tell all contained parachutes to go ahead and bunch
PutInContainer = AmericaParachute
Payload = UKInfantryMarine 5
DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
PreOpenDistance = 300 ;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
DeliveryDecalRadius = 50
DeliveryDecal
Texture = SCCParadrop_USA
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:227 G:229 B:22 A:255
OnlyVisibleToOwningPlayer = Yes
End
;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
End
End
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_Paradrop2UK
DeliverPayload
Transport = AmericaJetCargoPlane
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 4
DropOffset = X:0 Y:0 Z:-10
DropDelay = 80 ; time in between each item dropped (if more than one)
ParachuteDirectly = Yes ; will tell all contained parachutes to go ahead and bunch
PutInContainer = AmericaParachute
Payload = UKInfantryMarine 10
DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
PreOpenDistance = 300 ;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
DeliveryDecalRadius = 50
DeliveryDecal
Texture = SCCParadrop_USA
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:227 G:229 B:22 A:255
OnlyVisibleToOwningPlayer = Yes
End
;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
End
End
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_Paradrop3UK
DeliverPayload
Transport = AmericaJetCargoPlane
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 4
DropOffset = X:0 Y:0 Z:-10
DropDelay = 80 ; time in between each item dropped (if more than one)
ParachuteDirectly = Yes ; will tell all contained parachutes to go ahead and bunch
PutInContainer = AmericaParachute
Payload = UKInfantryMarine 10
DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
PreOpenDistance = 300 ;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
DeliveryDecalRadius = 50
DeliveryDecal
Texture = SCCParadrop_USA
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:227 G:229 B:22 A:255
OnlyVisibleToOwningPlayer = Yes
End
;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
End
DeliverPayload
Transport = AmericaJetCargoPlane
StartAtPreferredHeight = Yes
StartAtMaxSpeed = No
MaxAttempts = 4
DropOffset = X:0 Y:0 Z:-10
DropDelay = 80 ; time in between each item dropped (if more than one)
ParachuteDirectly = Yes ; will tell all contained parachutes to go ahead and bunch
PutInContainer = AmericaParachute
Payload = UKInfantryMarine 10
DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
PreOpenDistance = 300 ;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
DeliveryDecalRadius = 50
DeliveryDecal
Texture = SCCParadrop_USA
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:227 G:229 B:22 A:255
OnlyVisibleToOwningPlayer = Yes
End
;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
End
End
SpecialPower
Code:
;-----------------------------------------------------------------------------
SpecialPower SuperweaponParadropUK
Enum = SPECIAL_CLEANUP_AREA
ReloadTime = 240000 ; in milliseconds
RequiredScience = SCIENCE_Paradrop1UK
PublicTimer = No
SharedSyncedTimer = Yes
RadiusCursorRadius = 50
End
Science
Code:
Science SCIENCE_Paradrop1UK
PrerequisiteSciences = SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USAParaDrop1
Description = CONTROLBAR:ToolTipUSAScienceParaDrop
End
Science SCIENCE_Paradrop2UK
PrerequisiteSciences = SCIENCE_Paradrop1 SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USAParaDrop2
Description = CONTROLBAR:ToolTipUSAScienceParaDrop
End
Science SCIENCE_Paradrop3UK
PrerequisiteSciences = SCIENCE_Paradrop2 SCIENCE_Rank3
SciencePurchasePointCost = 2
IsGrantable = Yes
DisplayName = SCIENCE:USAParaDrop3
Description = CONTROLBAR:ToolTipUSAScienceParaDrop
End
I also put the following in the code for the cargoplane,
Code:
Behavior = OCLSpecialPower ModuleTag_06
SpecialPowerTemplate = SuperweaponParadropUK
UpgradeOCL = SCIENCE_Paradrop3UK SUPERWEAPON_Paradrop3UK
UpgradeOCL = SCIENCE_Paradrop2UK SUPERWEAPON_Paradrop2UK
OCL = SUPERWEAPON_Paradrop1UK
CreateLocation = USE_OWNER_OBJECT
End
Any ideas?[/code]