Jump to content
Sign in to follow this  
warpuppy

Smoke Shells

Recommended Posts

Greating to every one

What i am trying to do with a trigger is to get an AI rifleman armed with a smoke shell to throw the smokeshell on particular spot

What i have so far is

AI with smokeshell

Invisable marker named M1 (Invisable H)

Trigger

ON ACT R1n_pos=getpos m1, R1 fire "smokeshellredmuzzle"

Trigger is activated by Radio Alpha at present

Share this post


Link to post
Share on other sites

I dont know if it will work but it should.

Try the dotarget markername and dofire smoke name.

Share this post


Link to post
Share on other sites

If you just want a smoke to go off at a particular location from the soldier:

_smoke = "SmokeShellGreen" createVehicle position _soldier;
_smoke setPos (getPos _soldier);

You could also add distance to that with a little math, as far as throwing I think that's already been answered.

Share this post


Link to post
Share on other sites
If you just want a smoke to go off at a particular location from the soldier:

_smoke = "SmokeShellGreen" createVehicle position _soldier;
_smoke setPos (getPos _soldier);

You could also add distance to that with a little math, as far as throwing I think that's already been answered.

Why do you setPos the smokeshell again in the second line of the code? Is that some obscure trick that I don't know about, or is it just plain wrong? :D

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  

×