Jump to content
Sign in to follow this  
Wadi

Smoke shells and flares

Recommended Posts

How do you get AI units to fire Flares and throw Smoke shells?

And how do you get it so a trigger is activated when they do this?

And how do you get Black Ops to put and detonate Satchel Charges, and finally what is the weapon name (for doing this addweapon...) for satchel charges?

Share this post


Link to post
Share on other sites

flaregunner fire ["m203muzzle", "flare"]; flaregunner AddMagazine "flare";

flaregunner fire ["m203muzzle", "flare"]; flaregunner AddMagazine "flare"

Share this post


Link to post
Share on other sites

To make black op drop and detonate satchel charge:

blackop fire ["put", "pipebomb"]; blackop action ["touchoff"]

If you make a blackop go next to an enemy tank that is active he will automatically drop satchel charges, I found out.

Here's a little tutorial for your second question: lets say you want a soldier to go to a waypoint and shoot a flare, and when the soldier gets there you want a blackop to detonate a satchel charge.

In the waypoint, you write in the "conditions" box

true

you write in the "on activation" box

*code for shooting flare*; flare=true

Then in a trigger you write in the "conditions" box

flare

Then write in the "on activation" box

blackop action ["touchoff"]

Of course for this to work, the blackop will have already had to lay a satchel charge. Also, the blackop isn't detonating the bomb because of the flare. The soldier will shoot the flare, but the blackop is detonating the bomb because the soldier reached the waypoint. To make it more realistic, you can put the countdown on the trigger to ten seconds or something, so the flare will be burning in the air when the blackop detonates the bomb.

As for shooting flares, that's what I'm trying to figure out too.  Sl@sh's answer didn't seem to work.

Share this post


Link to post
Share on other sites

Smokeshells:

man_1 Fire ["throw","smokeshell"]

This should work for flares:

Give a grenadier some flares:

man1 AddMagazine "flare"

make a trigger set to detect east/west etc in a certain area. And in the activation field type:

man1 Fire ["M203Muzzle", "Flare"]

for west or

man1 Fire ["GrenadesMuzzle", "Flare"]

for east

Share this post


Link to post
Share on other sites

Thanx y'all, it was fairly complicated but I think I understood it.

Share this post


Link to post
Share on other sites

hmmm...It all works apart from the Smokeshells.

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  

×