15.07.2012, 23:30
Also, when you set the checkpoint you should use a variable and give it a value to know which checkpoint did you reach.
And make your script in OnPlayerEnterCheckpoint checking variable's value. It would work as a "Checkpoint ID".
If you don't know how to use IsPlayerInArea try with IsPlayerInRangeOfPoint. If you're going to set the checkpoint checking the zone in OnPlayerUpdate, make a bool and check its values to set or no the checkpoint, because probably it'll be set infinite times when you're in that area.
Good luck!
And make your script in OnPlayerEnterCheckpoint checking variable's value. It would work as a "Checkpoint ID".
If you don't know how to use IsPlayerInArea try with IsPlayerInRangeOfPoint. If you're going to set the checkpoint checking the zone in OnPlayerUpdate, make a bool and check its values to set or no the checkpoint, because probably it'll be set infinite times when you're in that area.
Good luck!

