Jump to content

onElementClicked, bug ?


Recommended Posts

Posted

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

Posted

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().

Posted

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?

Posted

...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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...