From the example we can see that all the other actions are working, the outline color changes and the variable changes as well. However, I don’t understand why the join is still attached…
Because there’s a wait before the variable change on the event adding the joint , it looks like it could be adding multiple joints but only 1 joint gets deleted. Try changing the variable before the wait or add a trigger once.
Well now I feel dumb I knew I needed some fresh eyes.
I had it yesterday when I was experimenting with Joins for the first time and I forgot to remove it.
Thanks for the help @Keith_1357 and @MrMen I was sure that you would be able to help.
Just another question if you can answer…
If I understood right, the action right now was creating many joints.
Shouldn’t they basically overwrite each other since I specified that they should all be saved here? Is there a way to see all the active joints?
It’s creating a new joint with a new ID but your events only save the last joint ID.
You could add it to an array but since you only need 1 joint. It doesn’t seem necessary.
I like to set the ID to the object variable. It’s a shame you can’t use object variables in the joint event so you need an extra action to set the object variable to the scene variable. But, it keeps things organized.
I’m slow today - it took me a while to get what you wrote there and that the event was being triggered repeatedly for 0.2 seconds, adding a new weld joint with a new ID every time.
This keeps going until the first wait finished and the variables change, and the event’s conditions are no longer met.