How to make the AI use one custom weapon?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

How to make the AI use one custom weapon?

Post by CdtFox »

How to make the AI use one custom weapon? For exemple I've added a deployable shield for one new class, but the AI won't use it, when playing, I'm the only one that use that weapon... :o

Is there any odf code that can solve the problem?

Thanks for the help! :D
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: How to make the AI use one custom weapon?

Post by Anakin »

did you took my code?? for me it worked.

But i wonder how to make the AI to use the shield as shield. They use it as turret and the enemies shoot on it as it was a turret
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Re: How to make the AI use one custom weapon?

Post by CdtFox »

Anakin wrote:did you took my code?? for me it worked.

But i wonder how to make the AI to use the shield as shield. They use it as turret and the enemies shoot on it as it was a turret
Yep, I used your code, exactly.

And yes, if someone can explain us how to make it like a shield it would be better.
Post Reply