Posted by: hydra46 - Sunday, December 2, 2012 3:58:26 AM
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![smile]

Posted by: Annihilationzh - Sunday, December 2, 2012 4:47:49 AM
Here's an example: [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 = 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[/code] You can even spawn buildings via this method.

Posted by: hydra46 - Sunday, December 2, 2012 7:15:55 AM
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?

Posted by: Annihilationzh - Sunday, December 2, 2012 9:53:05 AM
This is tested code. [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[/code] 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: [code]ObjectCreationList SUPERWEAPON_RebelAmbush3[/code] [code]End[/code]

Posted by: hydra46 - Monday, December 3, 2012 6:38:23 AM
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!

Posted by: Annihilationzh - Monday, December 3, 2012 1:11:44 PM
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

Posted by: hydra46 - Tuesday, December 4, 2012 5:33:00 AM
; ----------------------------------------------------------------------------- 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 ; -----------------------------------------------------------------------------

Posted by: Ail-Shan - Wednesday, December 5, 2012 2:23:10 PM
[quote]CreateObject ObjectNames = RebelAmbushPlacedVoiceEffect Count = 1 End[/quote] 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).

Posted by: hydra46 - Thursday, December 6, 2012 4:07:47 AM
well actually i tried te game and it worked! thank you so much dude!