11.12.2009, 21:37
It's been over a year since i did anytihng to do with checkpoints.. To be honest it was jsut simple stuff with one checkpoint, so there was no need to identify sepperate ones..
Anyway..
I'm wanting to make 1 checkpoint at the moment, which will vanish if a player gets a certain distance away from it, and re-appear when the player gets a certain distance within it.
I figure it may be something to do with using a function to chekc the distance between the centre point of where the checkpoint will be created, and the players position.. Like a radius check on a timer.
The problem im having though is actually checking which checkpoint the player is in.
For example, at the moment i only need to create 1 checkpoint, but in future i will be needing maybe 20 in total..
I would prefer not to use a checkpoint streamer by someone else, because it would involve too many functions that i dont need, i jsut want to make something simple and effective. I just don't know where to start and how to identify each checkpoint.
It would be helpful if there was such a thing as GetPlayerCheckpoint but i checked the wiki and it doesnt exist.
Anyway..
I'm wanting to make 1 checkpoint at the moment, which will vanish if a player gets a certain distance away from it, and re-appear when the player gets a certain distance within it.
I figure it may be something to do with using a function to chekc the distance between the centre point of where the checkpoint will be created, and the players position.. Like a radius check on a timer.
The problem im having though is actually checking which checkpoint the player is in.
For example, at the moment i only need to create 1 checkpoint, but in future i will be needing maybe 20 in total..
I would prefer not to use a checkpoint streamer by someone else, because it would involve too many functions that i dont need, i jsut want to make something simple and effective. I just don't know where to start and how to identify each checkpoint.
It would be helpful if there was such a thing as GetPlayerCheckpoint but i checked the wiki and it doesnt exist.