Obi Official Forum

Full Version: Obi Rope - Tear Event
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Firstly, congratulations, these plugins are simple incredible!

Perhaps I missed something, but, is there an event to detect the rope tear?

Some kind of "rope.OnTear()" callback would be great.

I'm doing a climber game, ropes are tearing ok according to the resistence used. I'm just missing something to detect this event, and instantiate an effect (particles) on the event point.

Thanks,
(09-03-2023, 04:35 PM)Augusto Wrote: [ -> ]Hi,

Firstly, congratulations, these plugins are simple incredible!

Perhaps I missed something, but, is there an event to detect the rope tear?

Some kind of "rope.OnTear()" callback would be great.

I'm doing a climber game, ropes are tearing ok according to the resistence used. I'm just missing something to detect this event, and instantiate an effect (particles) on the event point.

Thanks,

Hi! Thanks for your kind words Sonrisa

Yes, the event is called OnRopeTorn. As parameters you'll get the rope and a ObiRopeTornEventArgs instance, that contains the structural element being torn and the index of the torn particle.

kind regards,