Jump to content
prototype1479

How to find the position where bullet landed

Recommended Posts

Nevermind I just figured it out.

 

Unit addeventhandler ["Fired" , {_s = nearestobject [_this select 0 , _this select 4] ; [_this select 0 , _this select 1 , getpos _s , _s] exec "Script.sqs"}]

 

When "_s" gets executed to the script alone then it will give the position of the bullet it landed

 

But if its executed with "getpos _s" then it will return the position where bullet spawned (where you shot)

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

×