IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Can we make a unit NOT to attack buildings when Guard ?, How unit select its target when set to Guard or AutoAcquire ?
ai_beyondcontrol
post 17 Feb 2019, 5:32
Post #1



Group Icon

Group: Members
Posts: 46
Joined: 18 June 2015
From: Shanghai,China
Member No.: 11608



Long story short, I added an auto-cannon weapon to Raptor Jet,
CODE
……
  AntiGround                  = Yes
  AntiAirborneVehicle         = Yes
  AntiAirborneInfantry        = Yes
……


basically it works fine. But I want the auto-cannon attack building only when been manually ordered to do so by the player, not while been set to Guard or AutoAcquireEnemiesWhenIdle, but still attacks other living targets such as enemy infantry or vehicle unit. Is it possible ?

Previously I attempt to use
CODE
AutoChooseSources = SECONDARY  FROM_PLAYER

But this also prevents raptor using the auto-cannon on enemy units other than buildings;

Resetting auto-cannon's DamageType to Non-building-only ones such as RADIATION would prevent manual attack attempt;

PreferredAgainst logic seems not work because since the clip of auto-cannon is larger than raptor jet's original missile, when the jet's missile weapon is depleted it will again using auto-cannon to attack buildings when set to Guard.

So I wonder if there's a way to solve the problem, or it's just impossible?
Go to the top of the page
 
+Quote Post
Zeke
post 17 Feb 2019, 6:54
Post #2


The X General
Group Icon

Group: Project Leader
Posts: 2166
Joined: 7 June 2009
From: Philippines
Member No.: 73
Uniqueness is Overrated



Impossible


--------------------
Go to the top of the page
 
+Quote Post
ai_beyondcontrol
post 17 Feb 2019, 7:47
Post #3



Group Icon

Group: Members
Posts: 46
Joined: 18 June 2015
From: Shanghai,China
Member No.: 11608



QUOTE (Zeke @ 17 Feb 2019, 13:54) *
Impossible


Thanks!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 19 March 2024 - 6:42