deykunisgang Posted August 7, 2019 Share Posted August 7, 2019 (edited) Hello everyone, my problem is described in the title. I hope someone helps me solve it. Crash occurs after some time in the casino, in the usual game everything is fine.I suppose the problem is that in some places of the casino I can’t conduct the beam, and therefore I get a failure, but I don’t know how to prevent this ... bool visible(vector end) { raycast result; vector surface; vector start = PED::GET_PED_BONE_COORDS(pedlocal, head, 0, 0, 0); int ray = WORLDPROBE::START_SHAPE_TEST_CAPSULE(start.x, start.y, start.z, end.x, end.y, end.z, 0.1f, 1, 0, 7); if (ray) { WORLDPROBE::GET_SHAPE_TEST_RESULT(ray, &result.DidHitAnything, &result.HitCoords, &surface, &result.HitEntity); if (result.DidHitAnything) return 0; return 1; } return 0; } Edited August 7, 2019 by deykunisgang Link to comment Share on other sites More sharing options...
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