Jump to content
Sign in to follow this  
Nic

Make unit use launcher instead of gun

Recommended Posts

I was wondering if there was a way to make a unit use his rpg launcher or whatever to blow up something without using waypoint(destroy). I was hoping to use scripting so that i can time it out with certain events.

When i use "commandfire" or "dofire" they only use thier guns...

And I can only seem to use "fire" with things you throw like smokeshells.

     If i do this the unit just looks all retarded...

     unit fire ["RPGLauncher","RPGLauncher"]

Also i notice that when you use "fire" with smokeshells you put "throw" -

     unit fire ["throw","smokeshellgreen","smokeshellgreen"]

So is there a SHOOT or FIRE type command to put in replace of THROW when you use weapons for the "fire" command?

Or is there any kind of detstroy command that would have the same effect as the waypoint(destroy)?

Thanks for any help dudes! wink.gif

Share this post


Link to post
Share on other sites

You can use

unitname DoTarget targetname

but it will have to be something like a tank or armoured vehicle for him to use AT weapons. When the command is given he should switch to the AT weapons.

Share this post


Link to post
Share on other sites

Thanks dude...I kinda solved my problem though

I did some looking around and found out what to put where it says "throw" , its the muzzle name, and for rpglauncher it equals "rpg". So it should work to use "fire" now..

But when you use "dotarget", do you then have to order him to use his weapon or should he automatically use it, when I used "dotarget" the unit kept facing the direction of the other unit but didnt fire... I suppose that may be because the vehicle is "empty" instead of "east" or "west".

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  

×