Hey guys!
I am making a racing game. I made a simple track and created a StartLine as well as some checkpoints, so that I know the player did make a lap through the track and didn’t just do shortcuts.
The plan is that the Checkpoint have some Boolean “HasBeenActivated” variable, so that only the first time in a lap the player goes through it counts it. Then the plan is for once you hit the star line again with all the checkpoints passed then we count one lap, save the time, reset the checkpoint passed counter and reset the “HasBeenActivated” variable for the checkpoints so that we can check again if the player passed through all checkpoints.
The problem is that I am not able to reset out the “HasBeenActivated” variable. So when the player goes on the next lap, it doesn’t count up when you cross checkpoints. I created a variable in the StartLine blueprint of the class “BP_InvisCheckpoint_C”, and I even set the HasBeenActivated variable as visible in the BP_InvisCheckpoint blueprint. I don’t know what’s going on.
Here is the startline crossing blueprint script.
http://puu.sh/aOitv/b89610fc6c.jpg
This is the checkpoint blueprint script.
http://puu.sh/aOiCo/829db36c4e.jpg
Thanks for the help