rey
  • rey
  • 52.5% (Neutral)
  • Major Topic Starter
8 years ago
i'm aware Generals provide ability to build one unit in variations, mostly for changing models and make same units look less like army of clones. this is quite an unknown territory to me in terms of what code must be put in each variation, where to specify each code-block properly.. %/

for the moment i'm not trying to make visual variations, i only want to build 1 transport with different loadouts. as i guess basic/starting code would be smt like this:

Object GLAVehicleTechnical

; *** ART Parameters ***
SelectPortrait = SUTechnical_L
ButtonImage = SUTechnical

Draw = W3DModelDraw ModuleTag_01
DefaultConditionState
Model = UVTechA
End
End

BuildCost = 500
BuildTime = 8.0 ;in seconds

Side = GLA
EditorSorting = VEHICLE
BuildVariations = GLAVehicleTechnicalChassisOne GLAVehicleTechnicalChassisTwo GLAVehicleTechnicalChassisThree

KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS VEHICLE TRANSPORT

End


next probably must be GLAVehicleTechnicalChassisOne with normal full code of unit and loadoutâ„–1(right?).
but what after that, how can i specify two more variations with simply stating they have different loadouts and everything else is the same? = how to make it with as small code as possible?
Sponsor
SkyMix_RMT
8 years ago
You should be able to achieve what you want by giving the two variations you want to add same models and different weapons.
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
Annihilationzh
8 years ago
The basic unit will need a generic model for use in world builder, and images for the buttons. It doesn't need a weapon or any code to make it work as a unit, since it's just going to be replaced when it spawns.
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.
rey
  • rey
  • 52.5% (Neutral)
  • Major Topic Starter
8 years ago

The basic unit will need a generic model for use in world builder, and images for the buttons. It doesn't need a weapon or any code to make it work as a unit, since it's just going to be replaced when it spawns.

Originally Posted by: Annihilationzh 


can you please look at example of code above and say what is not needed there(or maybe needed) as a base unit example code?