Renegade Projects Network Forums
attacking building with spies or engingeers - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Modding (https://forums.renegadeprojects.com/forumdisplay.php?fid=3)
+--- Forum: Red Alert 2 & Yuri's Revenge Editing (https://forums.renegadeprojects.com/forumdisplay.php?fid=8)
+--- Thread: attacking building with spies or engingeers (/showthread.php?tid=1134)



attacking building with spies or engingeers - Nikademis Von Hisson - 15.10.2008

When you attack a building with spies or engineers does it matter if you use building number? ex: power i building 1 so attack 1 or do you have to use the 65534 or 131072 or 196608. I know the AI file that came with the editor or deezires say it does not matter, but it seems that the AI sends spies and engineers to only 2 buildings when my aimd tells them to attack all. All have own scripts so they should attack. Another question is why do the attacking spies not disguise themselves when the script tells them to:

0=0,4
1=47,131072
2=46,131072
3=46,131072

they are attacking the battle lab in this script


RE: attacking building with spies or engingeers - Bobingabout - 15.10.2008

the offset number controls something, but i can't remember what
try looking on modenc


RE: attacking building with spies or engingeers - MRMIdAS - 15.10.2008

+0 (no offset) ?= goes to the building that is closest to the top of the map and reachable

+65534 ?= doesn't go anywhere even if all buildings are reachable

+131072 ?= goes to the building that the team is currently closest to

+196608 ?= goes to the second reachable building within a certian min/max distance range, also must be enemy to attack


RE: attacking building with spies or engingeers - DCoder - 15.10.2008

... No.


RE: attacking building with spies or engingeers - MRMIdAS - 15.10.2008

Oh, that's what PPM reckon.


RE: attacking building with spies or engingeers - DCoder - 17.10.2008

  • Value 0 - pick structure whose position poses the least threat
  • Value 1 - pick structure whose position poses the most threat
  • Value 2 - pick structure which is closest to you
  • Value 3 - pick structure which is the farthest away from you
Multiply Value by 65536 to get the final offset.


RE: attacking building with spies or engingeers - Nikademis Von Hisson - 19.10.2008

ok, but what about my spy not disguising himself. He walks into my base easy to spot.


RE: attacking building with spies or engingeers - MRMIdAS - 19.10.2008

(19.10.2008, 19:15:20)Nikademis Von Hisson Wrote: ok, but what about my spy not disguising himself. He walks into my base easy to spot.

Make him attack infantry before he does anything else. THEN send him to the CLOSEST whatever you want to infiltrate, as they will usually have the closest infantry too.


RE: attacking building with spies or engingeers - Nikademis Von Hisson - 19.10.2008

no, what I meant was the original script says:


0=0,4
1=47,131081
2=46,9
3=47,131083
4=46,11

if I read everything about this in modenc the spy attacks inf giving him the disguise, line 0 (0=0,4) every thing else in the script is the sov power plant


RE: attacking building with spies or engingeers - MRMIdAS - 20.10.2008

Make him do it twice.

Just to make sure.

Either that or he's finding enemy infantry that are closer to him than you, and disguising himself as the wrong team.