:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sat Feb 04, 2023 6:25 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum
ATTACK BUILDINGS?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
GlaWorker
Vehicle Driver


Joined: 01 May 2022

PostPosted: Mon Jan 09, 2023 10:38 pm    Post subject:  ATTACK BUILDINGS? Reply with quote  Mark this post and the followings unread

Please tell me how to force my defence building(for example Yuri Gattling Cannon) to attack enemy non defence building automatically? (like AutoAcquireEnemiesWhenIdle = yes ATTACK_BUILDINGS in generals)

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Jan 10, 2023 10:36 am    Post subject: Reply with quote  Mark this post and the followings unread

Non defensive buildings aren't considered a threat so units/defenses wont automatically target them.

I cant remember if a building needs IsBaseDefense=yes or just a Primary= weapon to be targeted. Either way there isn't a simple tag you can add to a weapon to make it auto-target everything.
_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Virgil
Stealth Laser Trooper


Joined: 22 Jul 2018

PostPosted: Tue Jan 10, 2023 1:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

The building MUST has a non-zero ThreatPosed value and Insignificant=no to be considered as a threat, game rules out any non-threat targets when scanning for one and doesn't automatically attack it.

Back to top
View user's profile Send private message
GlaWorker
Vehicle Driver


Joined: 01 May 2022

PostPosted: Tue Jan 10, 2023 1:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

But repairs automatically attack allied buildings. Maybe there is some way?

Back to top
View user's profile Send private message
Virgil
Stealth Laser Trooper


Joined: 22 Jul 2018

PostPosted: Thu Jan 12, 2023 3:28 am    Post subject: Reply with quote  Mark this post and the followings unread

GlaWorker wrote:
But repairs automatically attack allied buildings. Maybe there is some way?


Allied buildings are no threat, that's the result of negative damage weapon, game is hardcoded to use such weapons on allies instead of enemy so repair vehicle and medics can act smart.

Back to top
View user's profile Send private message
kenosis
Commander


Joined: 19 Aug 2009
Location: Moscow State University

PostPosted: Sat Jan 14, 2023 2:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

add a range=0 weapon and threatposed
_________________
Tired of grabbing my random SHP conversions? Why not learn to create SHPs for yourself?

Back to top
View user's profile Send private message Send e-mail Visit poster's website Skype Account Yahoo Messenger Account
GlaWorker
Vehicle Driver


Joined: 01 May 2022

PostPosted: Sun Jan 15, 2023 1:40 am    Post subject: Reply with quote  Mark this post and the followings unread

kenosis wrote:
add a range=0 weapon and threatposed

then the units will also attack the buildings?

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1478s ][ Queries: 11 (0.0078s) ][ Debug on ]