# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/making-a-custom-countdown-timer-using-verse
# Local doc: epic-docs/documentation/en-us/fortnite/making-a-custom-countdown-timer-using-verse.md
# Section: Preparing Your Class to Be Used by Other Code
MakeCountdownTimer<constructor><public>(MaxTime : float, InPlayer : agent) := countdown_timer:
RemainingTime := MaxTime
MaybePlayerUI := option{GetPlayerUI[player[InPlayer]]}
Verse Library
verse
18 Preparing Your Class To Be Used By Other Code
Initializes a new countdown timer instance with a max time and player UI reference.
extracted-snippets/documentation/en-us/fortnite/making-a-custom-countdown-timer-using-verse/18-preparing-your-class-to-be-used-by-other-code.verse