how to cast right actor

Hi guys,

ı have a little problem in my scripts may can help you ı will glad,

ı have a “loot back” actor for drop on aı, when my aı dies, this actor spawning on scene. This spawned actor must have a random int value inside of this. and ı want to reach that value on “lootback.ui”.
should I create a array for actors? .pleas check the images

I hope, I understand you correctly:



Accessing this from the UI depends on how you have built your game. But I presume, there is a way for you to call the UI when interacting with the LootBack. You could pass the LootBack reference to your UI directly and on Construct set the Text to the contained “YourInt”.