Jump to content
Sign in to follow this  
H4mmersticks

Get AI enemies to have RPG as default weapon.

Recommended Posts

I cannot figure out a script to get AI to equip RPGs as their primary.


I have tried:

 

_unit selectWeapon [“vn_rpg7”,”vn_rpg7”,”mode1”];

 

I have seen others post this same question but nobody has given a reply that works.

Share this post


Link to post
Share on other sites

May I suggest that you start by giving them an RPG and make sure they have no other weapon. And see how they handle it.

 

In the second test give them a RPG and a pistol and see how they handle them.

 

I have done this test. The RPG is always the secondary weapon. You have to give them an RPG and no other weapon.

.

 

 

 

Share this post


Link to post
Share on other sites

Further, you can create a trigger. Given the conditions are fulfilled, the trigger fires. 

 

Then, the weapon he is carrying is deleted and replaced with a different weapon.

 

To the observer, from a distance, he seems to be switching from one weapon to another.

Share this post


Link to post
Share on other sites
2 hours ago, Joe98 said:

May I suggest that you start by giving them an RPG and make sure they have no other weapon. And see how they handle it.

 They still do not equip the launcher unless they detect enemy. 
 

my goal is to have AI have launcher always equipped ready to go. unless prone for obvious reasons. Also to have this work if they have a primary. Only switching if out of rockets or prone.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×