Jump to content
Sign in to follow this  
ayser

AI won't take out RPG

Recommended Posts

Got rid of their main weapons, and added only an RPG and 2 rockets to them. They never seem to take out the RPG, but they do have the "Main weapon" animation on them, like so

http://gyazo.com/ffaf50a62c6eba04fa3568bd119a769d.png?1344453890 (1075 kB)

Heres my code:

_man = _this select 0;

_man setCaptive true;
removeallweapons _man;
//_moveno = 1;
_man addweapon "RPG7V";
_man addmagazine "PG7V";
_man addmagazine "PG7V";
//_man addmagazine "ACE_30Rnd_545x39_T_AK";
//_man addmagazine "ACE_30Rnd_545x39_T_AK";
//_man addmagazine "ACE_30Rnd_545x39_T_AK";
//_man addweapon "AK_74";
//_man setCombatMode "RED";
//_man setBehaviour "COMBAT";
//_man setunitpos "middle";
_man selectweapon "RPG7V";
//_man setCaptive false;

Is there anything missing?

Share this post


Link to post
Share on other sites

Try this in the init of the player

removeallweapons this;this addmagazine "PG7V";this addweapon "RPG7V";this addmagazine "PG7V";

Share this post


Link to post
Share on other sites
Try this in the init of the player

removeallweapons this;this addmagazine "PG7V";this addweapon "RPG7V";this addmagazine "PG7V";

Does the same as my script.

Share this post


Link to post
Share on other sites

This is a bug that apparently won't be fixed. They'll take it out right before shooting something but it seems you can't force them to run around with it anymore.

Share this post


Link to post
Share on other sites

seeing as _man selectweapon "RPG7V"; won't do anything the only thing you can do is

replace it with

_man dotarget _object ; _man dofire _object

they can move around with RPG in hand now, the only problem I've see is that they occasionally fire the weapon at nothing in particular.

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  

×