sacr1ficez Posted October 30, 2018 Posted October 30, 2018 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. Script security
Moderators IIYAMA Posted October 30, 2018 Moderators Posted October 30, 2018 (edited) 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 October 30, 2018 by IIYAMA 1 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
sacr1ficez Posted October 31, 2018 Author Posted October 31, 2018 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? Script security
Moderators IIYAMA Posted October 31, 2018 Moderators Posted October 31, 2018 (edited) If we are talking about custom bullets, then yes. For regular bullets use: https://wiki.multitheftauto.com/wiki/OnClientPlayerWeaponFire @majqq Edited October 31, 2018 by IIYAMA 1 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now