Can we make it so we can store joint ids in global variables

Please make sure to follow the forum’s rules before posting.
:cross_mark: Posts that do not follow the rules will be ignored, closed and archived.

currently, it only lets us store them in scene variables, but i want to use global variables so i can have in an external events the code to make joints and then have those ids avalible in some variables so i am not just guessing the id of each joint, because i am making a game where every enemy and the player use joints, and its annoying manually makeing sure each trigger activates the right joint, then repeating the process for every single level because the ids changed. I feel like it would be a great feature and make it so much easier to make games with lots of joints as you won’t need to count joints then guess which id the joint gets asigned.

It would be nice if any variable type could be used from scene, global, object or even function variables or properties.

It might work cleaner if the add joint functions were expressions which returned the ID. It could then be used as you please. I realize that there are a lot of joints and it’s late in the game.

Imagine:

JointID = AddRevoluteJoint(…)

Or

JointID = Object.AddRevoluteJoint(…)

Or

JointID = Object::AddRevoluteJoint(…)