Ranged Item OnBlockHit procedure is wacky

Published by DaanMC on
Status
Fixed
Issue description

Basically any procedure that you make and set to be triggered when the bullet of a ranged item hits a block, runs twice somehow. I have included a workspace that effectively demonstrates this problem. But hang on it gets even weirder: if the bullet hits an entity, it runs the block hit procedure too! (but not twice) How weird is that!? Anyways it is kinda getting me stuck because it breaks my things that should work just fine. Hope I helped.

Issue comments

We will improve the bullet collision procedures in the future.

It is called twice because it is called on the server and on the client side. To fix this, wrap your procedure with if statement and the if condition should be "Is provided world server side" procedure block from the World data tab in procedure editor.