Does creature can be included to Agent?

I want to Initialize creatures when they has spawned. So I code this:

InitCreatures( Agent:agent ):void=
    if( FC:= Agent.GetFortCharacter[] ):
        set spawnedCreatures += array{ FC }
        Print( "{spawnedCreatures.Length}" )

But it never prints the length! It Subscribes when the button device interacted. So I pressed. It never happens. How do I solve this thing?

I forgot to connect the spawner with verse device… now I’m gonna try again!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.