Jump to content


Photo

Ranged banner carriers?


  • Please log in to reply
3 replies to this topic

#1 Koo294

Koo294
  • Members
  • 16 posts
  • Location:Installation 01
  • Projects:Speak of a ring travels far...
  •  Top Hobbitses

Posted 03 August 2013 - 10:44 PM

Are they possible? Whenever I try to add a ranged weapon to a banner carrier it won't use it. The closest I've got is making a fake banner carrier by slaving a unit to a horde when it reaches level 2, but it's really glitchy and not a great fix at all.



#2 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 03 August 2013 - 11:30 PM

How would you like it to function? I have a "banner carrier" for my Haradrim Archers that is essentially an archer with a banner thingie on his back. Here is a picture.

 

Basically what I did was to make a ChildObject for the HaradArcher.

ChildObject HaradArcherBanner HaradArcher
	CommandPoints = 0
	EquivalentTo = HaradArcher
	DisplayName = OBJECT:HaradBanner
	
	KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS INFANTRY PATH_THROUGH_EACH_OTHER SCORE THROWN_OBJECT ATTACK_NEEDS_LINE_OF_SIGHT ARCHER GRAB_AND_DROP

	Behavior = BannerCarrierUpdate BannerCarrierUpdateModuleTag
		IdleSpawnRate			= 10000
		MeleeFreeUnitSpawnTime		= 20000
		DiedRespawnTime			= 10000
		MeleeFreeBannerReSpawnTime	= 20000
	End
	Behavior = AIUpdateInterface ModuleTag_03
		AutoAcquireEnemiesWhenIdle	= Yes ATTACK_BUILDINGS
		StopChaseDistance			= 642
		CanAttackWhileContained		= Yes
		AILuaEventsList				= HaradArcherBannerFunctions
		MinCowerTime				= 8000
		MaxCowerTime				= 10000
		AttackPriority				= AttackPriority_Archer
	End
	
End

I assume this is what you're after?


T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#3 Koo294

Koo294
  • Members
  • 16 posts
  • Location:Installation 01
  • Projects:Speak of a ring travels far...
  •  Top Hobbitses

Posted 03 August 2013 - 11:49 PM

If I copy your code exactly except changing your unit to my unit and use it as the banner carrier, he will just stand there while the rest of the horde is shooting the enemy, and will never attack.



#4 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 04 August 2013 - 12:38 AM

Would you post the code please?

 

edit: nevermind, I tested and it appears that my own don't work :p Guess I'll have to check it further.


Edited by Lauri, 04 August 2013 - 12:54 AM.

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users