Player Recognition

Making QT recognize the player.

For some functionality, QT needs to know which Transform belongs to the player and what level the player currently is (if your game features player levels). This should always happen after a save is loaded.

Player Transform

Setting the player transform is important for NPC interaction. Here's how you can set it:

QT.playerTransform = yourPlayerTransform;

This should be called whenever the player object is loaded.

Player Level

If your game allows the player to level up, QT may need to keep track of it. When the player reaches a new level, some quests may need to be unlocked since the player may now meet the level requirement.

Here's how you can update the player's level on QT's end:

QT.SetPlayerLevel(yourPlayerLevel);

This should be called when at the start of a new game and whenever the player levels up.

Last updated