hydra46
  • hydra46
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
can anybody teach me how to add units to the rebel ambush generals ability?
if you dont understand my question what i mean is how can i add a new unit type to the ambush ability. an example would be adding vehicles and other infantry types to the rebel ambush ability of GLA. if anyone can help me with this please reply.

please dont reply things like,"google is your bestfriend" because i have tried google and it does not give me a specific answer.

tnx in advance!😄
Sponsor
Annihilationzh
13 years ago
Here's an example:

ObjectCreationList SUPERWEAPON_RebelAmbush3
  CreateObject
    ObjectNames = GLAInfantryRebel
    Count = 8
    SpreadFormation = Yes
    MinDistanceAFormation = 20.0
    MinDistanceBFormation = 30.0
    MaxDistanceFormation = 400.0
    FadeIn = Yes
    FadeTime = 3000
    DiesOnBadLand = Yes
    ; FadeSound = RebelAmbushActivated
  End  ; Close CreateObject
  CreateObject
    ObjectNames = GLAInfantryTunnelDefender
    Count = 8
    SpreadFormation = Yes
    MinDistanceAFormation = 20.0
    MinDistanceBFormation = 30.0
    MaxDistanceFormation = 400.0
    FadeIn = Yes
    FadeTime = 3000
    DiesOnBadLand = Yes
    ; FadeSound = RebelAmbushActivated
  End ; Close CreateObject
End ; Close SUPERWEAPON_RebelAmbush3
You can even spawn buildings via this method.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
hydra46
  • hydra46
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
thanks man! but sadly the game crashes. i copied the code you posted and replaced the GLAInfantryTunnelDefender with GLAVehicleTechnical. if its not much trouble then, can you provide me a working code with the vehicle string?
Annihilationzh
13 years ago
This is tested code.

ObjectCreationList SUPERWEAPON_RebelAmbush3
CreateObject
ObjectNames = GLAInfantryRebel
Count = 8
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End ; Close CreateObject
CreateObject
ObjectNames = GLAVehicleTechnical
Count = 8
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End ; Close CreateObject
End ; Close SUPERWEAPON_RebelAmbush3

If it still crashes, you will need to check other changes you've made. You may also need to make sure you replaced it properly. In my experience, it's very common for new users to have duplicates of either of these, which will immediately crash the game:

ObjectCreationList SUPERWEAPON_RebelAmbush3

End

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
hydra46
  • hydra46
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
im actually making my own personal version of SWR productions' Rise of The Reds mod ver. 1.72. im having problems with this one because ive done everything you said even the code but i cant get it to work. if you know the mod then you might know how to code it so please help me with this i beg of you!
Annihilationzh
13 years ago
You'll have to give me a copy of the code you're using.

You're also more likely to get help if you post any error messages given by world builder on start-up, and in releasecrashinfo.txt in Documents\Command and Conquer Generals Zero Hour Data
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
hydra46
  • hydra46
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_RebelAmbush1
CreateObject
ObjectNames = GLAInfantryRebel
Count = 4
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = GLAInfantryTunnelDefender
Count = 1
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = GLAVehicleTechnical
Count = 1
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = RebelAmbushPlacedVoiceEffect
Count = 1
End
End

; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_RebelAmbush2
CreateObject
ObjectNames = GLAInfantryRebel
Count = 8
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = GLAInfantryTunnelDefender
Count = 2
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = GLAVehicleTechnical
Count = 3
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = RebelAmbushPlacedVoiceEffect
Count = 1
End
End

; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_RebelAmbush3
CreateObject
ObjectNames = GLAInfantryRebel
Count = 12
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = GLAInfantryTunnelDefender
Count = 4
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = GLAVehicleTechnical
Count = 5
SpreadFormation = Yes
MinDistanceAFormation = 20.0
MinDistanceBFormation = 30.0
MaxDistanceFormation = 400.0
FadeIn = Yes
FadeTime = 3000
DiesOnBadLand = Yes
; FadeSound = RebelAmbushActivated
End
CreateObject
ObjectNames = RebelAmbushPlacedVoiceEffect
Count = 1
End
End

; -----------------------------------------------------------------------------
Ail-Shan
13 years ago

CreateObject
ObjectNames = RebelAmbushPlacedVoiceEffect
Count = 1
End



What is that? I'm going to say that set is what's causing your crash. Not sure why you'd have an object for a sound. Assuming that such a thing is included in Rise of the Reds and you're copying it over from that, I'm going to say you don't have a RebelAmbushPlacedVoiceEffect, and the game crashes because of it (Mainly I'm saying this because I don't see anything else that'd cause a problem).
hydra46
  • hydra46
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
well actually i tried te game and it worked! thank you so much dude!