Editing GetSelf
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 20: | Line 20: | ||
Not only for CIOS, but for all "reference methods" that require a reference, like CIOS. | Not only for CIOS, but for all "reference methods" that require a reference, like CIOS. | ||
</li> | </li> | ||
<li>[[GetSelf]] | <li>If [[GetSelf]] is called in a script that is attached to an inventory item, the GECK will show a warning message when the data file is loaded. This warning can only be ignored if you can guarantee that the return value of [[GetSelf]] will not be used if it is called while the scripted item is in an inventory. This is due to the fact that inventory items do not have regular RefIDs. Rather, they are assigned RefIDs for the duration of a script execution so that reference functions may be called on them from their script, but these RefIDs are not permanent so attempting to use one of them will likely result in a script halt or other unintended behavior. | ||
</li> | </li> | ||
</ul> | </ul> |