Posts: 692
Threads: 69
Joined: Sep 2012
Reputation:
0
Hi! I've recently been looking for a way that loads checkpoints when the server starts using the database. Basically it loads the enter point and exit point of a certain building. It's quite hard to explain but once you enter the enter point (outside the building), you get in front of the exit point (inside the building) where you can also leave using the exit point which bring you back outside or near the enter point.
Posts: 3,138
Threads: 257
Joined: Nov 2009
Reputation:
0
If I understand right. It sounds like enter and exit are to close each other. Have happened to me when I used pickups.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
If you are also saving the angle then you can use a variation of GetXYInFrontOfPlayer to offset their position. Instead of using GetPlayerFacingAngle, you use the angle that you saved in the database to calculate the new position.
Posts: 692
Threads: 69
Joined: Sep 2012
Reputation:
0
Hopefully this example will help:
1. There's a checkpoint outside which brings you inside the cluckin' bell.
2. You get on the checkpoint and you're not inside the cluckin' bell's interior.
3. There's a checkpoint inside which brings you outside the cluckin' bell again.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
Are you even going to at least try and post some code? No one here is going to code this for you dude.