If used (1) in an item script and (2) the item is in a container in an exterior cell and (3) the container cell is loaded as the player approaches on foot and (4) GetSelf is used in the very first frame >> the game CTDs.
Notice that those are AND conditions. The game does not CTD if
- the item is in the world, or
- the player teleports to the area, or
- there is a frame delay and GetSelf is used in the second frame after load.
All I can guess is that the cell load process is different for teleporting into it (cell load screen and all) and the cells loaded as the player walks around in exterior areas. I guess that when GetSelf is used in the very first frame, somehow, the load process has not finished, causing the CTD.
This is confirmed and reproducible: I created a brand new mod with those conditions. The item script has only one line: "let MyRef := GetSelf (and some debugging code, of course) and the CTD happens 100% of the tries.
Has anybody heard about this before?
Is it worth mentioning in the GetSelf article in the WIKI? Or only in the GetSelf talk page?
Any thoughts?