Hello!
I'm looking for a way to reset an object in checkpoint restart, but only for that checkpoint.
After checkpoint A I use an area trigger to move a physics object using a point-to-point joint. When I reset to checkpoint A the physics object gets reset, which is fine.
When I pass checkpoint B and then reset I want the object to stay in place.
Disabling "Reset in checkpoint restart" will not reset the object when I reset to checkpoint A.
Any help would be appreciated!
Thanks for your help!
Exactly.
To illustrate what I'm trying do; after checkpoint A a hit-trigger will enable a joint which steers a car into a wall in front of the player. This car crash is between checkpoint A and checkpoint B.
If the player does not reach checkpoint B and fails and resets to checkpoint A, the car will be reset and the animation will play again, which is what is supposed to happen.
If the player reaches checkpoint B and fails and resets to checkpoint B, the car will be stationary at it's original position and will not have crashed, which is what I don't want. When I reset to checkpoint B I want the car crash to have happened.
I think this can be done with a condition filter but I don't know how to properly use it.
Thanks!
Leave the physics joint for Checkpoint A
And switch the car or whatever to OPE after Checkpoint B then set restart to checkpoint on - might get messy with triggers but you'll only ride it with the physics joint you wanted and not OPE.
Variable Data Source and Set Value Event will come in handy (you can also try Curve Data Source)
Set Value will be more instant in this case!
Hope this helps![]()