Helicopter cant pickup infantry unless on the Helipad

i dont know to solve this, halp

Information and discussion for custom maps and mods.
Post Reply
User avatar
MlemandPurrs
Posts: 26
Joined: Wed Mar 27, 2019 8:40 pm

Helicopter cant pickup infantry unless on the Helipad

Post by MlemandPurrs » Wed Mar 27, 2019 9:14 pm

Helicopter cant pickup infantry unless on the Helipad, and if has picked up cant unload them at all,

Code: Select all

IROQ:
	Inherits: ^Helicopter
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Aircraft
		BuildAtProductionType: Helicopter
		BuildPaletteOrder: 1
		Prerequisites: hpad, ~helicopters.allies, ~techlevel.medium
		Description: Light helicopter armed with dual chainguns\nCan transport up to 4 Infantry\n Strong vs Infantry, Light armor\n Weak vs Tanks, Aircraft
	Valued:
		Cost: 1200
	Tooltip:
		Name: Iroqouis
	Health:
		HP: 8000
	RevealsShroud:
		Range: 10c0
		Type: GroundPosition
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 8c0
		Type: GroundPosition
	Armament@PRIMARY:
		Weapon: ChainGun
		Name: primary
		LocalOffset: 85,-213,-85, 85,213,-85
		MuzzleSequence: muzzle
		PauseOnCondition: !ammo
	Armament@SECONDARY:
		Name: secondary
		Weapon: ChainGun
		LocalOffset: 85,213,-85, 85,-213,-85
		MuzzleSequence: muzzle
		PauseOnCondition: !ammo
	AttackAircraft:
		FacingTolerance: 20
	Aircraft:
		LandWhenIdle: false
		InitialFacing: 224
		TurnSpeed: 5
		Speed: 178
	AutoTarget:
		InitialStance: ReturnFire
		InitialStanceAI: AttackAnything
	WithIdleOverlay@ROTORAIR:
		Offset: 0,0,85
		Sequence: rotor
		RequiresCondition: airborne
	WithIdleOverlay@ROTORGROUND:
		Offset: 0,0,85
		Sequence: slow-rotor
		RequiresCondition: !airborne
	AmmoPool:
		Ammo: 12
		PipCount: 6
		ReloadDelay: 8
		AmmoCondition: ammo
	Cargo:
		Types: Infantry
		MaxWeight: 4
		PipCount: 4
	SelectionDecorations:
	WithMuzzleOverlay:
	SpawnActorOnDeath:
		Actor: IROQ.Husk
	SmokeTrailWhenDamaged:
		Offset: -427,0,0
	ProducibleWithLevel:
		Prerequisites: helicopters.upgraded
	Selectable:
		DecorationBounds: 38,32
	Rearmable:
		RearmActors: hpad

abcdefg30
Posts: 326
Joined: Mon Aug 18, 2014 6:00 pm

Re: Helicopter cant pickup infantry unless on the Helipad

Post by abcdefg30 » Wed Mar 27, 2019 10:29 pm

Sounds like LandableTerrainTypes on the Aircraft trait is not set to what you want (you should be fine if you just copy what TRAN does).

User avatar
MlemandPurrs
Posts: 26
Joined: Wed Mar 27, 2019 8:40 pm

Re: Helicopter cant pickup infantry unless on the Helipad

Post by MlemandPurrs » Mon Apr 01, 2019 8:47 am

Well, have copied that didnt do anything, suppose carrying infantry with LandWhenIdle: false is a no go

Post Reply