Jump to content
Sign in to follow this  
kentrel

Exact coordinates of a bullet strike

Recommended Posts

Is there a way to get the exact coordinates of a bullet strike on a model? Say my target is a billboard - how would I be able to compute the exact part of that billboard that was hit?

I know Army of the Czech Republic has it in their shooting range, but I can't decrypt the mission file to see how BI have done it.

I was thinking something like this, but is there something better?

while {alive _bullet} do
{
   _last_pos = getPosATL _bullet;    
   sleep 0.01;
};

Share this post


Link to post
Share on other sites

Try to have a look on Murcielago's shooting range 2.0. He realized exactly that. Perhaps he will help you out.

The script you tried will not work as the bullet will be alive after hitting your billboard (ricochet, penetration)

Share this post


Link to post
Share on other sites

I had a look at his code. Much of it is in SQS which confuses me a little, but from what I can tell, it seems he solved it in more or less the same way I was planning on doing it.

I'm curious how BI did it in the Army of the Czech Republic shooting range. A graphic pops up with the exact location of your bullet strike, and at the end of the round, it replays the bullet strikes.

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  

×