ShadowLoleris Posted July 19, 2017 Share Posted July 19, 2017 Why can I go through the objects I've put on the map if the collision has been disabled? Link to comment
Administrators Lpsd Posted July 19, 2017 Administrators Share Posted July 19, 2017 That's exactly what's supposed to happen if you disable the collision for an object. No collision = you can't hit the object, you just pass through it. Link to comment
ShadowLoleris Posted July 19, 2017 Author Share Posted July 19, 2017 1 hour ago, LopSided_ said: That's exactly what's supposed to happen if you disable the collision for an object. No collision = you can't hit the object, you just pass through it. I do not want to go through the object either with the character or with a vehicle! Link to comment
pa3ck Posted July 19, 2017 Share Posted July 19, 2017 So why do you want to disable the collision in the first place? Link to comment
Administrators Lpsd Posted July 19, 2017 Administrators Share Posted July 19, 2017 Just leave the collisions enabled then... Link to comment
MTA Anti-Cheat Team Dutchman101 Posted July 19, 2017 MTA Anti-Cheat Team Share Posted July 19, 2017 Maybe you need to learn the definition of collisions first (what it means) before fiddling with those values.. That's why you (think) you've run into a problem. Link to comment
ShadowLoleris Posted July 19, 2017 Author Share Posted July 19, 2017 In my own 'Nephrite Diamond' server I put some objects on the map, like gates! Unfortunately, it can pass through the character or vehicles through these objects! The collision was set to false, that is, the collision was disabled. Link to comment
Captain Cody Posted July 19, 2017 Share Posted July 19, 2017 You need to set the elements collisions enabled. Using setElementCollisionsEnabled(crate,true) 1 Link to comment
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