How to force a listenable event?

I would like to force a listenable event as I can not Hide the collectible_object_device for one specific player.

if(not IsScrollGranted?):
                        Log("Collectible {Index} was no collected. Respawning it", LOG_LEVEL_COLLECTIBLES)
                        ScrollCollectible.Respawn(Agent)
                    else:
                        ScrollCollectible.CollectedEvent(listenable(agent))
                        Log("Collectible {Index} was collected. Doing nothing", LOG_LEVEL_COLLECTIBLES)

How I can create a listenable for the CollectedEvent function?

It’s hard to understand what you’re actually trying to do, (collect the scroll again? trigger the operations related to collecting the scroll again? ignore everything and make the scroll disappear?)

Anyways, listenable are made for you to listen to them, not trigger them, it goes only one way

Looking at the provided API functions, it seems that you can’t hide it just for one player, but you can Respawn it for one player, maybe you disable automatic respawning and can rework your system around that

Hey!

There is no way of disable automatic respawning on this device. It can be Visible on Game Start or not, and this is for everybody. That is why I want to force the player to “pick up” is device if I don´t want to be visible for him.

I am trying to force the the “CollectedEvent” so it can disapear for this specific player

1 Like

What if you set an Allowed Class and switch the players away from that class once they picked it up ?

I could be possible but a bit messy. I would like to have about 20 collectibles in the map as “easter eggs” if one player pick one of them it should only disapear this one. If I use classes I would must have about 20 classes and allow to collect them by order

Also, I personally don´t trust the class and team selector device. I have bad experiences with it in the past and if I can avoid it it would be better.

1 Like

Well you should probably do your own collectibles using instigated switch devices then

1 Like