# My player reference device isn't being updated by my code and I'm not sure why

**URL:** <https://forums.unrealengine.com/t/my-player-reference-device-isnt-being-updated-by-my-code-and-im-not-sure-why/2651735>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 28, 2025, 12:41pm UTC](https://forums.unrealengine.com/t/my-player-reference-device-isnt-being-updated-by-my-code-and-im-not-sure-why/2651735 "2025-08-28T12:41:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_H121](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_H121](https://forums.unrealengine.com/u/_H121)\
**Post date:** [August 28, 2025, 12:41pm UTC](https://forums.unrealengine.com/t/my-player-reference-device-isnt-being-updated-by-my-code-and-im-not-sure-why/2651735/1 "2025-08-28T12:41:48Z")

</div>

Hi, I’m trying to show the team members as holograms with the player reference device.  
Tried to modife my PlayerSlot code to add this to it, I get no erros but the reference device isn’t doing anything. and idea why? thanks!

`var SlotAgent : ?agent = false`  
..  
`@editable TeamSelector : class_and_team_selector_device = class_and_team_selector_device{}`  
`@editable PlrRefDevice : player_reference_device = player_reference_device{}`  
…

`Assign(Agent : agent):logic={`  
` if(SlotAgent?){`  
` PlrRefDevice.Clear`  
` return false`  
`}`  
`TeamSelector.ChangeTeam(Agent)`  
`OnPlayerSpawned(Agent)`  
`Currencyui.AddUI()`  
`PlrRefDevice.Register(Agent)`  
`return true`  
`}`

---

<div class="post-metadata">

**Author:** ![BRGJuanCruzMK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgjuancruzmk/32/1036548_2.png) [@BRGJuanCruzMK](https://forums.unrealengine.com/u/BRGJuanCruzMK)\
**Post date:** [September 2, 2025, 1:09pm UTC](https://forums.unrealengine.com/t/my-player-reference-device-isnt-being-updated-by-my-code-and-im-not-sure-why/2651735/2 "2025-09-02T13:09:03Z")

</div>

Hello again @_H121 how are you?

I think this was solved with my answer in [your other post](https://forums.unrealengine.com/t/how-can-i-clear-a-player-reference-device-when-the-player-changes-teams/2651570/3), right?

Otherwise let me know if you need more help!
