Feche1320 Posted January 30, 2019 Posted January 30, 2019 (edited) Hi, I have this strange issue with setElementCollisionsEnabled, the helicopter rotor still has collisions enabled, as you can see on the image. Here is my script: function disableCollisions() local ghostmode = true local tp = getElementData(localPlayer, "room_id") if tp == "Shooter" then ghostmode = getElementData(root, "shooter.ghostmode") elseif tp == "OJ" then ghostmode = getElementData(root, "oj.ghostmode") end local vehicles = getElementsByType("vehicle", root, true) for i = 1, #vehicles do for k = 1, #vehicles do setElementCollidableWith(vehicles[i], vehicles[k], getElementInterior(vehicles[i]) == 100 and false or not ghostmode) end end local players = getElementsByType("player", root, true) for i = 1, #players do setElementCollisionsEnabled(players[i], players[i] == localPlayer and true or false) end end Is there any way to disable this? thanks Edited January 30, 2019 by Feche1320 www.host-ar.com.ar
Mr.Loki Posted January 30, 2019 Posted January 30, 2019 You should check the wiki SetHeliBladeCollisionsEnabled. [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
Feche1320 Posted January 30, 2019 Author Posted January 30, 2019 (edited) 3 minutes ago, Mr.Loki said: You should check the wiki SetHeliBladeCollisionsEnabled. OMG never heard of that function, I literally spent 3 hours messing with setElementCollidableWith and setElementCollisionsEnabled, thanks! Edited January 30, 2019 by Feche1320 www.host-ar.com.ar
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