Jump to content

Bullet colshape


ds1-e

Recommended Posts

  • Scripting Moderators

Hey, does something like "bullets" colshape exists in MTA? I'm asking because i have function which bypass players and i don't know how to make that this function will avoid bullets.

Link to comment
  • Moderators

There are two(three*) functions that can detect things between two points, which you could describe as "line detection". A line would be similar to a flying bullet.

 

https://wiki.multitheftauto.com/wiki/IsLineOfSightClear

 

https://wiki.multitheftauto.com/wiki/ProcessLineOfSight

 

* Water detection.

 

 

Edited by IIYAMA
  • Like 1
Link to comment
  • Scripting Moderators
21 hours ago, IIYAMA said:

There are two(three*) functions that can detect things between two points, which you could describe as "line detection". A line would be similar to a flying bullet.

 

https://wiki.multitheftauto.com/wiki/IsLineOfSightClear

 

https://wiki.multitheftauto.com/wiki/ProcessLineOfSight

 

* Water detection.

 

 

 

So it's the only way to detect bullets?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...