Jump to content
Sign in to follow this  
clawhammer

How to count Shooting targets at hit

Recommended Posts

Hello together,

i have written a small script that pop up the BI Shooting targets on our Training ground. My next big step is to count with a hit.

here is an part of my script:


	switch (_rNumber) do
	{
		case 0:
			{
				Range01Target01 animate ["terc",0];

				sleep 5;

					 if ((Range01Target01 animationPhase "terc" > 0.1 ) then
						{
							Hint "Hit";
							_score = _score+1;
	    					};

				Range01Target01 animate ["terc",1];
			};		

The problem is, sometimes he does not count correctly. In MP and SP.

Is there a better way to count targets?

Would be nice if someone can help me!

Thanks!

Edited by Clawhammer

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  

×