24.05.2015, 16:29
Quote:
That is not at all maintenance friendly. If you have, say, 100 doors like that you're simply not going to copy-paste 100 coordinates beneath each other.
When the player enters a dynamic checkpoint, save that checkpointid to a global player variable. When they leave a dynamic checkpoint, reset that variable. Then, in the command, use IsPlayerInDynamicCheckpoint to establish that they're still in the checkpoint, using the ID you saved earlier. Then switch checkpointid to get the desired position. This isn't the best way to do it, still, but at least it's better than copying sets of coordinates. |