OnSpawnEffectEnded is only called after all entities spawned by the spawn effect are gone

Describe the bug:

How do you cause this bug?

  • Select the barrel of laughs spawn effect
  • Create a new game with a script on the Player template that looks like something like this
local MyTestScript = {}

function MyTestScript:OnSpawnEffectEnded()
  print("The spawn effect has ended")

return MyTestScript
  • Preview the game. Notice that you have full control of your character for a good 8 seconds before OnSpawnEffectEnded is run.

Screenshots / video of bug:

Here’s an example, in this video the player equips a fishing rod when the spawn effect ends. Now yo ucan’t see it very well due to the spawn at 0,0,0 bug, but basically the barrel you spawn out of is going to roll around for a bit. Not until that barrel is actually despawned does the entrypoint run.

Which platform: PC / Stadia

Which input: Controller / keyboard + mouse

Your Crayta username: Cereal

Game seen in (including “Hub” or “Editor for XYZ”): Editor

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): Every time

Time + date seen: June 26 2022

Version number (found in Help tab in Settings): 0.f5.27.124757

Hey there @Cereal ! :sun_with_face:

I have entered a ticket for this issue and our internal team will investigate this.
Thanks for flagging this to us, hope to have a resolution for you soon!

1 Like

Just flagging @QA_Kathel that this has affected the new flower spawn effect in Cybotanica too

Hey there @Adam_Jay ! :panda_face:

Thanks for the flagging me!

I have updated the Ticket with the additional information provided :slight_smile: