[FIXED] - NPC SetAlive(false) breaks property links on scripts

Describe the bug:
NPC SetAlive(false) breaks property links on scripts

How do you cause this bug?

  • Create a script on a NPC
  • Have a property with type entity, pointing to an entity on or outside of the NPC (doesn’t matter)
  • Use NPC:SetAlive(false)
  • The property is now nil
  • → Important: This bug only occurs if the NPC is inside a template!! If I break the template link everything works fine!

Workaround:

  • Reference all entity properties in a script that is located on the parent locator of the NPC
  • → This workaround only works if the property entities are not located under the NPC entity

Interesting insight:

  • The properties are set for 3 Server OnTick, then they turn to nil
  • In ClientOnTick they are always nil

Which platform: PC

Which input: keyboard + mouse

Your Crayta username: Vilva#9953

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

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

Time + date seen: 11.06.2022

Version number (found in Help tab in Settings): 0.f4.84.123388

Hiya @Vilva !

Thank you for the info and the important notes! I have opened up a ticket for our internal team to investigate this issue further. :star2:

1 Like

Hello

This should now be fixed as of 0.g1.49.126267.

Please let us know if you continue to see this issue!

1 Like

It is still broken, see here:

Hey there @Ya_shi_shi !

Thanks for flagging this to us, I have re-opened the ticket so that we can further investigate the issue and get this resolved for you as soon as possible! :slight_smile: