So I am trying to make a track where you can change the game character to the steel ball and fly it around. A have that working just fine; it toggles between the rider and the ball with RB. The issue I am having is I want the ball to spawn above the rider's head every time a checkpoint is triggered/restarting at a checkpoint.
I have an OPE connected to the checkpoint, and the OPE gets its coordinates from data sources attached to the rider for the X Y Z. I have the Y value going through an operator so that it appears two meters above the riders head.
The ball appears in the correct position every time if I have reset at a checkpoint or if I have not moved the ball from the previous checkpoint. The issue arises when I move the ball to a location, then when I go through the checkpoint and thereby activating the OPE, the ball moves to a seemingly random location about 20% of the time. It is so frustratingly inconsistent.
Any ideas?
try inserting a impulse delay of 1 tick before the OPE to give the bike/rider time to reset so the object position info can get updated.
That worked! I had to use 3 ticks though. Clearly my coding must be pretty poor.Originally Posted by dasraiser
Also thanks to AndyBMXBandit for inviting me to chat to try and explain some things to me. Gave me some good ideas.
Also another quick question: I want my checkpoints to send out an impulse ONLY on checkpoint restart, so I have the checkpoint send an impulse to a clamp filter. The clamp filter is set to send out an impulse after receiving two impulses.t can send out a max of 500 and it waits 30:00.000 to gather the impulses) This does the job but I feel like there must be a better way.
Awesome. Thanks for the quick response!