Jump to content
Sign in to follow this  
brad7

Getting ai to fire on pop up targets

Recommended Posts

I used do target and do fire but the ai threw one grenade then nothing else - if possible i want to be able for him to engage the pop up target forever with his rifle - i have tried loads of options but cannot figure this out.

Share this post


Link to post
Share on other sites

you could use an action to simulate dofire but you will need to script it

Target = t1

gamelogic = gl

AI = blue1

null=[] spawn {blue1 dotarget t1 ;sleep 2;while {alive t1 and alive blue1} do {sleep 0.1; gl action ["useweapon",vehicle blue1,blue1 ,0]; }};

Share this post


Link to post
Share on other sites
Ammo isn't free!

Tell that to the blufor showcase exhibition ;-)

you could use an action to simulate dofire but you will need to script it

Target = t1

gamelogic = gl

AI = blue1

null=[] spawn {blue1 dotarget t1 ;sleep 2;while {alive t1 and alive blue1} do {sleep 0.1; gl action ["useweapon",vehicle blue1,blue1 ,0]; }};

How would i do that?

Share this post


Link to post
Share on other sites

You could place that code above in a triggers on act set to go off when you want and name the objects as I have them.

It really depends on what you final objective is, if you want multiple targets then you would need to add a target list and change the target randomly or in order when knocked down.

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  

×