nowofresh Posted June 5, 2011 Share Posted June 5, 2011 Hi, When i click on object by event - onElementClicked, and source type is object with setElementCollisionsEnabled (object, false ) then this return false and dosent detect this object. I hope you fix that or get me instructions to solve this problem. ...or Can u get me other way to disable collision and can use this function ? I found this - http://bugs.mtasa.com/view.php?id=5184 Link to comment
BinSlayer1 Posted June 6, 2011 Share Posted June 6, 2011 there's 1 more function that handles collisions, try it: https://wiki.multitheftauto.com/wiki/Set ... idableWith let us know if it makes any difference Link to comment
nowofresh Posted June 6, 2011 Author Share Posted June 6, 2011 It is not good, because i want vehicle elements, player elemenets, objects elements on server. I want to off collisions with all elements by type - like setElementCollisionsEnabled(). Link to comment
BinSlayer1 Posted June 6, 2011 Share Posted June 6, 2011 server? setElementCollisionsEnabled() is clientside only as well, at the moment. (until MTA 1.1 is released) How about you try using setElementCollidableWith in an ipairs FOR with all the objects and players? Link to comment
nowofresh Posted June 6, 2011 Author Share Posted June 6, 2011 ...i know about this and optimization will be ( no comment ) for 100 objects and 200 players... Do u know the way to detect click by cursor with element off collision, onClientClick is bugged, because this only sometimes detect object at the player... I was traying a lot off ways and always i have problem with elements no-collisionable. Link to comment
karlis Posted June 7, 2011 Share Posted June 7, 2011 getElementColShape() no idea will it work, but try this. 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