Describe the bug
Jump and climb controls/animations ignore setElementCollidableWith function (client-side).
To reproduce
Expected behaviour
localPlayer shouldn't collide with the object
Version
1.5.8
Thanks for the report.
Can you test if canclimb affects it?
https://wiki.multitheftauto.com/wiki/EngineSetSurfaceProperties
As well, can you provide a test script that resembles what is seen in your video?
Thanks,
Only these two lines were relevant to the issue,
object = createObject(983, 0,0,2,90,90,90)
setElementCollidableWith(localPlayer, object, false)
and engineSetSurfaceProperties(55, "canclimb", false) affected it, cant collide with the object anymore.
Thanks for testing. We can/maybe should force that surface property in conjunction with setElementCollidableWith, but we may not. I'll let others voice their opinions so we can decide a path forward.
Lets make this a feature, and add a note to the wiki that they need to disable it.
It has been like this since forever, it's not something that got introduced with the surface properties PR.
Nice find. We might need a way to change surface properties per object, or more likely, just patch some jumping code to ignore non-collidable objects.
Most helpful comment
Lets make this a feature, and add a note to the wiki that they need to disable it.
It has been like this since forever, it's not something that got introduced with the surface properties PR.