Jump to content
Sign in to follow this  
SejtanPL

UseWeapon

Recommended Posts

I found here somthing like this...

I try to use it in editor in that configuration ru1 action ["UseWeapon", heli, STRELA]. It's don't work... I don't know what I'm doing wrong. Someone can help?  help.gif

ru1 - AA soldier_name

heli - chooper_name

STRELA - weapon name

And... sorry for my english smile_o.gif

Share this post


Link to post
Share on other sites

Hi,

Dunno whether this thread you linked is right, but I d use

unit1 selectWeapon "Weaponname";

unit1 doTarget heli;

instead

Share this post


Link to post
Share on other sites

The parameter <target> refers to the object (or unit) that ru1 is to perform the action from (it would have to be himself, so <target> should be ru1), and the <weapon index> is probably supposed to be a number from 0 to whatever (hence why it is called an index).

Based on this description the action UseWeapon doesn't make them fire at a target, but IMO just makes them select a weapon. So even if you did get it to work it's not what you're looking for. You should use doTarget and/or doFire.

Share this post


Link to post
Share on other sites
Quote[/b] ]You should use doTarget and/or doFire

I used this before, but SI have big problem to shot down the chopper. Now I used the selectWeapon "WeaponName", and it's working, so thank you guys. biggrin_o.gif

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  

×