I spawn some items with the flags ECE_NOPERSISTENCY_CHAR | ECE_NOPERSISTENCY_WORLD | ECE_NOLIFETIME using the GetGame().CreateObjectEx(classname, position, flags); method, but the problem is, that players can pickup the item. Logging out with an item spawned like this will break the player save and wipe the entire character. When you try to log back in, you will see the error message shown in the screenshot and if you login again, you lost all your stuff
Description
Description
Details
Details
- Severity
- Block
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- General
Steps To Reproduce
int flags = ECE_CREATEPHYSICS | ECE_UPDATEPATHGRAPH | ECE_KEEPHEIGHT | ECE_SETUP | ECE_NOSURFACEALIGN | ECE_LOCAL | ECE_NOPERSISTENCY_CHAR | ECE_NOPERSISTENCY_WORLD | ECE_NOLIFETIME; Object object = g_Game.CreateObjectEx("AK101", position, flags);
- Spawn the item like shown above near the player
- pickup the item
- logout
- login again