mod Supply Truck to transport infantry?
Posted: Tue May 25, 2021 5:06 am
I tried modding my map to make the Supply Truck transport infantry like the APC instead of give money to allies. I set the cash to 0 but the game crashes. Here's what the change look like:
TRUK:
Inherits: ^Vehicle
Inherits@selection: ^SelectableSupportUnit
Buildable:
Queue: Vehicle
BuildPaletteOrder: 410
Prerequisites: ~techlevel.low
Description: Transports cash to other players.\n Unarmed
Valued:
Cost: 500
Tooltip:
Name: Supply Truck
Health:
HP: 11000
Armor:
Type: Light
Mobile:
Speed: 128
RevealsShroud:
Range: 4c0
Cargo:
Types: Infantry
MaxWeight: 5
PipCount: 5
LoadingCondition: notmobile
DeliversCash:
Payload: 0
PlayerExperience: 0
SpawnActorOnDeath:
Actor: moneycrate
TRUK:
Inherits: ^Vehicle
Inherits@selection: ^SelectableSupportUnit
Buildable:
Queue: Vehicle
BuildPaletteOrder: 410
Prerequisites: ~techlevel.low
Description: Transports cash to other players.\n Unarmed
Valued:
Cost: 500
Tooltip:
Name: Supply Truck
Health:
HP: 11000
Armor:
Type: Light
Mobile:
Speed: 128
RevealsShroud:
Range: 4c0
Cargo:
Types: Infantry
MaxWeight: 5
PipCount: 5
LoadingCondition: notmobile
DeliversCash:
Payload: 0
PlayerExperience: 0
SpawnActorOnDeath:
Actor: moneycrate