Jump to content

onClientElementColShapeHit vs onClientColShapeHit


Jay_

Recommended Posts

Hi there,

Would somebody please explain to me the difference between these two client side events:

https://wiki.multitheftauto.com/wiki/OnClientColShapeHit

https://wiki.multitheftauto.com/wiki/OnClientElementColShapeHit

Is there a recommended best practice in terms of which one to use?

I also have an issue that, when using onClientElementColShapeHit, if I set the position of the element (in this case a player), to inside the col shape, it does not trigger the event. It is triggered if they walk into it, just not when their position is set to within it. Has anyone experience this?

Thanks

Link to comment

Thanks for the reply.

I've now found out the difference. Just to clear this up - as the name suggests, onClientElementColShapeHit actually refers to elements created client side, whereas onClientColShapeHit is triggered when a client-side element hits a server side col shape. As it's slightly misleading, I'll pop a note on the wiki :)

Edited by Jay_
Link to comment

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