joey55
  • joey55
  • 100% (Exalted)
  • Major Topic Starter
15 years ago
i got this code so far for my supplytruck
but i cant get i to get supplys
what more i need to do i already added:SupplyTruckAIUpdate ModuleTag_03

Object ThunderReaperSupplyCollector

  ; *** ART Parameters ***
  SelectPortrait         = SUTerrorist_L
  ButtonImage            = SUTerrorist
  Draw              = W3DTruckDraw ModuleTag_01
    ConditionState  = NONE
      Model         = CVConvoy4
    End
    ConditionState  = LOADED
      Model         = CVConvoy4
    End  

    CabRotationMultiplier = 1.5

    TrailerRotationMultiplier = 0.2
    CabBone = CAB
    TrailerBone = TRAILER
    RotationDamping = 0.7

    RightFrontTireBone = Tire01
    LeftFrontTireBone = Tire02
    MidRightFrontTireBone = Tire03
    MidLeftFrontTireBone = Tire04
    MidRightMidTireBone = Tire05
    MidLeftMidTireBone = Tire06
    MidRightRearTireBone = Tire07
    MidLeftRearTireBone = Tire08
    RightRearTireBone = Tire09
    LeftRearTireBone = Tire10

    TireRotationMultiplier = 0.2   ; this * speed = rotation.
  End

  ; ***DESIGN parameters ***
  DisplayName       = OBJECT:ThunderReaperSupplyCollector
  Side                = ThunderReaper
  Prerequisites
    Object = ThunderReaperSupplyCenter
  End
  EditorSorting       = VEHICLE
  TransportSlotCount  = 0 ;how many "slots" we take in a transport (0 == not transportable)
  BuildCost           = 1000
  BuildTime           = 10.0 ; in seconds
  ArmorSet
    Armor           = TruckArmor
    DamageFX        = CrushableCarDamageFX
  End

  TransportSlotCount  = 3                 ;how many "slots" we take in a transport (0 == not transportable)
  WeaponSet
    Conditions      = None
    Weapon          = PRIMARY None
  End
  WeaponSet
    Conditions      = CARBOMB
    Weapon          = PRIMARY None
  End

  VisionRange       = 150
  ShroudClearingRange = 350

  CrusherLevel           = 2  ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
  CrushableLevel         = 2  ;What am I?:        0 = for infantry, 1 = for trees, 2 = general vehicles
  CommandSet = CivilianCarBombCommandSet

  ; *** AUDIO Parameters ***
  VoiceSelect             = ConvoyTruckSelect
  SoundMoveStart          = ConvoyTruckMoveStart
  UnitSpecificSounds
    TruckPowerslideSound  = NoSound
    TruckLandingSound     = NoSound
  End

   ; *** ENGINEERING Parameters ***  
  KindOf            = SELECTABLE CAN_ATTACK VEHICLE HARVESTER  SHOW_PORTRAIT_WHEN_CONTROLLED
  RadarPriority     = LOCAL_UNIT_ONLY

;Lorenzen disabled transport on 12/16, please do not restore
;  Behavior            = TransportContain ModuleTag_TransportContain
;    Slots             = 8
;    AllowInsideKindOf = INFANTRY; VEHICLE
;  End

  Body              = ActiveBody ModuleTag_03
    MaxHealth       = 100.0
    InitialHealth   = 100.0
  End

  Behavior               = DestroyDie ModuleTag_04
                    ;nothing
  End
  Behavior               = CreateObjectDie ModuleTag_05
    DeathTypes = ALL 
    CreationList    = OCL_GenericCarExplode
  End
  Behavior               = CreateObjectDie ModuleTag_06
    DeathTypes = NONE +SUICIDED
    CreationList    = OCL_BurnedCarHull
  End

Behavior = SupplyTruckAIUpdate ModuleTag_03
    MaxBoxes = 4
    SupplyCenterActionDelay = 400     ; ms for whole thing (one transaction)
    SupplyWarehouseActionDelay = 1000 ; ms per box (many small transactions)
    SupplyWarehouseScanDistance = 700 ;350 ; Max distance to look for a warehouse, or we go home.  (Direct dock command on warehouse overrides, and no max on Center Scan)
    SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted
  End
  Locomotor = SET_NORMAL SupplyTruckLocomotor
  Behavior = PhysicsBehavior ModuleTag_04
    Mass = 5.0
  End

  Behavior = AIUpdateInterface ModuleTag_07
  End
  Locomotor       = SET_NORMAL SupplyTruckLocomotor
  Locomotor       = SET_WANDER WanderCarLocomotor
  Locomotor       = SET_PANIC PanicCarLocomotor
  Behavior          = PhysicsBehavior ModuleTag_08
    Mass            = 30.0
  End

  Behavior = FXListDie ModuleTag_09
    DeathFX = FX_BattleMasterExplosionOneFinal
  End

  Behavior = FlammableUpdate ModuleTag_21
    AflameDuration = 5000         ; If I catch fire, I'll burn for this long...
    AflameDamageAmount = 5       ; taking this much damage...
    AflameDamageDelay = 500       ; this often.
  End

  Geometry            = BOX
  GeometryIsSmall     = NO
  GeometryMajorRadius = 30.0
  GeometryMinorRadius = 8.0
  GeometryHeight      = 16.0
  Shadow              = SHADOW_VOLUME

End


you have to be a happy man, to be a happy man πŸ™‚
Sponsor
Annihilationzh
15 years ago
Remove this section:
  Behavior = AIUpdateInterface ModuleTag_07
  End
  Locomotor       = SET_NORMAL SupplyTruckLocomotor
  Locomotor       = SET_WANDER WanderCarLocomotor
  Locomotor       = SET_PANIC PanicCarLocomotor

And change ModuleTag_03 into something else, because you have two of them. It can be anything as long as it doesn't have a space.

I didn't check the rest, but having two AIUpdates is probably the cause.
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.
joey55
  • joey55
  • 100% (Exalted)
  • Major Topic Starter
15 years ago
thanks againπŸ‘ πŸ˜„

are you sure u arent god?
you have to be a happy man, to be a happy man πŸ™‚