Jump to content

RemoveMe/RemoveItem Crash Every Way Including Loose


lorenzo19

Recommended Posts

I'm trying to write a scripted misc item that removes itself from certain containers that I don't want it to be in. Narrowed down the problem to this fragment. The RemoveMe causes the crash.

 

BEGIN OnAdd

Set rContainer to GetContainer
if rContainer != PlayerREF && iTemp == 0

Set iTemp to 1
RemoveMe
endif

END ONAdd

 

Per BethSoft... It does not cause crashes when used in the OnAdd block.

 

I wish that was actually true. Then I wouldn't be having this problem. I have tried every which way including loose. To quote a movie title. Every thing i try gets the same result: crashed game.

 

I have tried persistent containers, non-persistent containers, tried RemoveItem. Tried adding the item via script and via the container menu. Tried putting RemoveMe in the GameMode block and waiting 1, 2, 10 and 20 frames. put in the all guards to prevent infinite loops to ensure that RemoveMe only runs once.

 

Have a feeling RemoveMe is a dead end road. DropMe seems to work, but I rather not use DropMe because I am using the OnDrop block for another purpose.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...