Jump to content


Photo

Using a command button on an enemy object?


  • Please log in to reply
8 replies to this topic

#1 Sc4Freak

Sc4Freak
  • New Members
  • 6 posts

Posted 05 September 2004 - 04:25 AM

I want the AI to fire it's generals powers at the nearest enemy super weapon, but I don't know how. The closest I found was: Team 'teamSkirmishAmerica' use Ability 'Command_A10ThunderboltMissileStrike' on nearest object of type 'Super Weapons', but that fires on allied and enemy units too. Help!

#2 Lion

Lion
  • New Members
  • 50 posts

Posted 05 September 2004 - 05:23 AM

Ive never tried it so it might not work, but cant you set the TeamSkirmsh*insertgeneralhere* to hunt using that command button ability then set priority as superweapons to max?

Thats another reason why the AI needs a superfast invisible unit, set it with a melee weapon (should hover above the SW really) to attack it (no damage) and fire the power at the unit which we could call AFgen_targetter1 or something...
i also have the full layout for making sure multiple generals of the same type can use it without confusion etc etc...
all we need is someone that isnt time challenged like me to do the new unit(s)...

Edited by Lion, 05 September 2004 - 05:24 AM.


#3 Mithril

Mithril

    496

  • Hosted
  • 1,386 posts
  • Location:UK
  • Projects:Heh! You're not going to ask me that question.

Posted 05 September 2004 - 08:19 AM

Ah-uh.. if you tell the AI to HUNT using a commandbutton ability, the object's ini will need a CommandbuttonHuntUpdate. You could tell the generic team (e.g., teamSkirmishUSA for vanilla USA) to USE the commandbutton ability on the nearest enemy object of type '???' though.
Command & Conquer: Red Alert - ReGeneration

"Not the faintest clue =\"

-ComradeJ

#4 Guest_DeeZire_*

Guest_DeeZire_*
  • Guests

Posted 05 September 2004 - 08:47 AM

In the 'define object lists' script for each General, make a new list entry for 'enemy super weapons' that contains every super weapon but its own. Then you can attack an object from that list. Of course, that approach will fail when a General is facing another player using the same General but Im sure it could be tweaked.

#5 Akkrand

Akkrand
  • New Members
  • 61 posts
  • Location:Melbourne, Australia

Posted 05 September 2004 - 09:17 AM

If you can get it to work using the HUNT command, you don't need to eliminate the superweapon from the same side generals. When hunting, the AI automatically only targets enemy units.

Cheers,
Lord Akkrand

#6 Sc4Freak

Sc4Freak
  • New Members
  • 6 posts

Posted 05 September 2004 - 09:48 AM

Ah-uh.. if you tell the AI to HUNT using a commandbutton ability, the object's ini will need a CommandbuttonHuntUpdate. You could tell the generic team (e.g., teamSkirmishUSA for vanilla USA) to USE the commandbutton ability on the nearest enemy object of type '???' though.

<{POST_SNAPBACK}>


Could you please direct me to where I could find this action?

#7 Mithril

Mithril

    496

  • Hosted
  • 1,386 posts
  • Location:UK
  • Projects:Heh! You're not going to ask me that question.

Posted 05 September 2004 - 10:18 AM

In ZH it is in [UNUSED][CommandButton]\
Command & Conquer: Red Alert - ReGeneration

"Not the faintest clue =\"

-ComradeJ

#8 Sc4Freak

Sc4Freak
  • New Members
  • 6 posts

Posted 05 September 2004 - 10:29 AM

I tried it, and the AI launched the generals powers against it's own SW and then gave me a serious error.

#9 Mithril

Mithril

    496

  • Hosted
  • 1,386 posts
  • Location:UK
  • Projects:Heh! You're not going to ask me that question.

Posted 05 September 2004 - 10:35 AM

?! That shouldn't happen.. did you select the proper generic team for it?
Command & Conquer: Red Alert - ReGeneration

"Not the faintest clue =\"

-ComradeJ




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users