# Learn the Basics of Writing Code in Verse Lesson 6: Practice Time!

**URL:** <https://forums.unrealengine.com/t/learn-the-basics-of-writing-code-in-verse-lesson-6-practice-time/831436>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, bug-report, fortnite\
**Created:** [March 29, 2023, 4:08am UTC](https://forums.unrealengine.com/t/learn-the-basics-of-writing-code-in-verse-lesson-6-practice-time/831436 "2023-03-29T04:08:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SerDogeCoin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SerDogeCoin](https://forums.unrealengine.com/u/SerDogeCoin)\
**Post date:** [March 29, 2023, 4:08am UTC](https://forums.unrealengine.com/t/learn-the-basics-of-writing-code-in-verse-lesson-6-practice-time/831436/1 "2023-03-29T04:08:09Z")

</div>

> **[Lesson 6: Practice Time!](https://dev.epicgames.com/documentation/en-us/uefn/learn-code-basics-6-practice-time-in-verse)**
>
> Define a function — or two! You can do it!

HurtPlayer()  
Print(“Player Hurt”)  
Sleep(5.0)  
HealPlayer()  
Print(“Player Healed”)

To get this to work consistently I had to add a delay before the first call to Hurtplayer.

---

<div class="post-metadata">

**Author:** ![pipu69dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pipu69dev](https://forums.unrealengine.com/u/pipu69dev)\
**Post date:** [June 28, 2023, 7:10am UTC](https://forums.unrealengine.com/t/learn-the-basics-of-writing-code-in-verse-lesson-6-practice-time/831436/2 "2023-06-28T07:10:40Z")

</div>

I put a Sleep(5.0) and a Sleep (10.0) before the first call and I still can’t get it to work.

---

<div class="post-metadata">

**Author:** ![GomezUnlimited](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GomezUnlimited](https://forums.unrealengine.com/u/GomezUnlimited)\
**Post date:** [July 3, 2023, 7:48am UTC](https://forums.unrealengine.com/t/learn-the-basics-of-writing-code-in-verse-lesson-6-practice-time/831436/3 "2023-07-03T07:48:52Z")

</div>

How did you made the lesson 5 practice time code to work? It is doing nothing on my end.
