Can we make a unit NOT to attack buildings when Guard ?, How unit select its target when set to Guard or AutoAcquire ? |
Can we make a unit NOT to attack buildings when Guard ?, How unit select its target when set to Guard or AutoAcquire ? |
17 Feb 2019, 5:32
Post
#1
|
|
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? |
|
|
17 Feb 2019, 6:54
Post
#2
|
|
The X General Group: Project Leader Posts: 2166 Joined: 7 June 2009 From: Philippines Member No.: 73 Uniqueness is Overrated |
Impossible
-------------------- |
|
|
17 Feb 2019, 7:47
Post
#3
|
|
Group: Members Posts: 46 Joined: 18 June 2015 From: Shanghai,China Member No.: 11608 |
|
|
|
Lo-Fi Version | Time is now: 10 June 2024 - 11:01 |