i was completely wrong in what i wrote here. i though i figured it out but i did not. spawnat works with decorations, not Key1-3 or Hp1-4
Nah, it should work with any entity.
I found the bug. It does create a key but in a different place. As I said, the codebase is very old and spaghetti like at this point, so I had an old error with Z coordinates.