Skip to content

[Jail] Fix Tutorial spawning in wrong position due to game update #63

Closed
nomoemptypointer wants to merge 2 commits intoExiled-Team:masterfrom
nomoemptypointer:master
Closed

[Jail] Fix Tutorial spawning in wrong position due to game update #63
nomoemptypointer wants to merge 2 commits intoExiled-Team:masterfrom
nomoemptypointer:master

Conversation

@nomoemptypointer
Copy link
Copy Markdown

No description provided.

player.ClearInventory(false);
player.Role.Set(RoleTypeId.Tutorial, SpawnReason.ForceClass, RoleSpawnFlags.None);
player.Position = new Vector3(53f, 1020f, -44f);
player.Position = new Vector3(40f, 1015f, -33f);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
player.Position = new Vector3(40f, 1015f, -33f);

@@ -186,7 +186,7 @@ public static IEnumerator<float> DoJail(Player player, bool skipadd = false)
yield return Timing.WaitForSeconds(1f);
player.ClearInventory(false);
player.Role.Set(RoleTypeId.Tutorial, SpawnReason.ForceClass, RoleSpawnFlags.None);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
player.Role.Set(RoleTypeId.Tutorial, SpawnReason.ForceClass, RoleSpawnFlags.None);
player.Role.Set(RoleTypeId.Tutorial, SpawnReason.ForceClass, RoleSpawnFlags.UseSpawnpoint);

@louis1706
Copy link
Copy Markdown
Member

Fix in #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants