Difference between revisions of "RemoveMe"
Jump to navigation
Jump to search
imported>Wz |
imported>Wz m |
||
Line 10: | Line 10: | ||
NOTE2: This function does not seem to show the "xxx has been removed." message. | NOTE2: This function does not seem to show the "xxx has been removed." message. | ||
NOTE3: When using RemoveMe right after the object has been added, you usually have to wait more than one frame before you can safely do so. A counter to 10 that delays the RemoveMe command, increasing one step on every MenuMode or GameMode, should prevent random CTDs. | |||
==See Also== | ==See Also== |
Revision as of 13:20, 10 July 2006
Syntax:
RemoveMe TargetContainerID (optional)
Example:
RemoveMe RemoveMe player
Removes the calling object from the inventory of the container that it is in (if applicable). If TargetContainerID is specified, the object is moved to the target container.
NOTE: this function acts as a "return" when called -- the lines of script following it will NOT be executed (since it has just destroyed itself in the process of removing itself from inventory).
NOTE2: This function does not seem to show the "xxx has been removed." message.
NOTE3: When using RemoveMe right after the object has been added, you usually have to wait more than one frame before you can safely do so. A counter to 10 that delays the RemoveMe command, increasing one step on every MenuMode or GameMode, should prevent random CTDs.