Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline RV55  
#1 Posted : Thursday, February 22, 2018 6:12:13 AM(UTC)
RV55
Private
Joined: 1/28/2018(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Hello,

I made a map, where I wanted the defending units to basically stand behind obstacles for cover.

Regardless if the cover was destroyed, I'd still like the units to 'stand ground' and not move towards the enemy who are attacking the defending team.

Ofcourse, the defending team still needs to fire back at the attackers as soon as they're in range.

Can this be done? Can it be used for both individual units and teams?

Thanks.

Sponsor
Offline SkyMix_RMT  
#2 Posted : Thursday, February 22, 2018 7:43:51 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Have you tried using the guard script?
You can have units/teams guarding their current location or a specified trigger area. They will only attack enemies that are inside their default guard areas or the area you specified and will stop chasing enemies when they get too far.

Though I'm not sure, I think that setting a units aggressiveness to "Passive" will make the unit only attack if enemies are inside their attack range.
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Offline Deinon  
#3 Posted : Monday, February 26, 2018 4:43:49 PM(UTC)
Deinon
Captain
Joined: 5/11/2016(UTC)
Posts: 85

Thanks: 5 times
Was thanked: 4 time(s) in 4 post(s)
Try setting the "Held" status for the unit to "True," under the movement options in your scripting. This seems to work for some units, but for others it prevents them from firing. I know I've wanted to do the same with tanks and artillery pieces in checkpoints, placing sandbags around them. Battlemaster seems to work, but Overlord doesn't.

Edited by user Monday, February 26, 2018 4:45:16 PM(UTC)  | Reason: Not specified

Offline AdrianeMapMaker  
#4 Posted : Monday, February 26, 2018 8:10:22 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Passive mode is going the unit to ignore enemies even if it's on its face hehe
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.