Skip to content

Commit 5a74a1b

Browse files
authored
feat: Add Model (#595)
Update FpcRole.cs
1 parent 151bed1 commit 5a74a1b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

EXILED/Exiled.API/Features/Roles/FpcRole.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ public RelativePosition ClientRelativePosition
6767
set => FirstPersonController.FpcModule.Motor.ReceivedPosition = value;
6868
}
6969

70+
/// <summary>
71+
/// Gets or sets the <see cref="CharacterModel"/> associated with the player.
72+
/// </summary>
73+
public CharacterModel Model
74+
{
75+
get => FirstPersonController.FpcModule.CharacterModelInstance;
76+
set => FirstPersonController.FpcModule.CharacterModelInstance = value;
77+
}
78+
7079
/// <summary>
7180
/// Gets or sets the player's gravity.
7281
/// </summary>
@@ -305,4 +314,4 @@ public void ResetStamina(bool multipliers = false)
305314
StaminaRegenMultiplier = 1f;
306315
}
307316
}
308-
}
317+
}

0 commit comments

Comments
 (0)