Jump to content

Recommended Posts

Hello, I'm trying to make a mission where a convoy roll up and they disembark. A few seconds later, I have a sniper team on the hill but i want them to only take a single shot.

Is there any easy way to get the AI fire at the players with only a single shot?

Been looking all over but no luck. I've managed to get them to fire from a long range but not with only a single shot.

Thanks!

Share this post


Link to post
Share on other sites

In the units init field:

this addEventhandler ["Fired",{
	params ["_unit"];
	_unit setCombatMode "BLUE";
	_unit removeEventhandler ["Fired",_thisEventhandler];
}];

This will make the unit disengage and hold fire after the first shot and also removes the eventhandler if needed.

 

Cheers

  • Like 3

Share this post


Link to post
Share on other sites
3 hours ago, Harzach said:

Or, you know, just give him one bullet :D

This usually initiates an inner discourse about proper uses of that one remaining bullet without any meaningful outcome.

 

Cheers

  • Haha 4

Share this post


Link to post
Share on other sites
6 hours ago, Harzach said:

Or, you know, just give him one bullet :D

What for? playing Russian roulette with a P07 ?

  • Haha 3

Share this post


Link to post
Share on other sites
21 minutes ago, pierremgi said:

What for? playing Russian roulette with a P07 ?

I'm feelin' lucky tonight, fellas!

  • Haha 3

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

×