Difference between revisions of "HasBeenPickedUp"
Jump to navigation
Jump to search
imported>Haama (→See Also: Oh, it's an alias) |
imported>QQuix (Correcting my previous edit) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
(pickedUp:bool) reference.IsTaken | (pickedUp:bool) reference.IsTaken | ||
Returns true (1) if the calling reference is currently inactive due to having been picked up by an actor or otherwise transferred to an inventory. | Returns true (1) if the calling reference is currently inactive due to having been picked up by an actor or otherwise transferred to an inventory. | ||
===Notes=== | |||
*It is no use trying to use this function on dynamic references because the moment the reference is picked up, its FormID becomes invalid and, of course, using this function (or any other) on an invalid FormID will not return anything useful. | |||
*This function does not work on implicit references, i.e. it is required to provide a reference before the dot (notice that the function is described as reference.HasBeenPickedUp and not as ''[reference].''HasBeenPickedUp) | |||
==See Also== | ==See Also== | ||
*[[GetFirstRef]] | * [[SetHasBeenPickedUp]] | ||
*[[GetNextRef]] | * [[IsFormValid]] | ||
* [[GetFirstRef]] | |||
* [[GetNextRef]] | |||
[[Category:Functions]] | [[Category: Functions]] | ||
[[Category: Functions (OBSE)]] | [[Category: Functions (OBSE)]] | ||
[[Category: Functions (OBSE v0014)]] | [[Category: Functions (OBSE v0014)]] | ||
[[Category: | [[Category: Miscellaneous Functions]] | ||
[[Category: | [[Category: Miscellaneous Functions (OBSE)]] |
Latest revision as of 17:00, 11 June 2013
A command for Oblivion Script Extender
Syntax:
(pickedUp:bool) reference.HasBeenPickedUp (pickedUp:bool) reference.IsTaken
Returns true (1) if the calling reference is currently inactive due to having been picked up by an actor or otherwise transferred to an inventory.
Notes[edit | edit source]
- It is no use trying to use this function on dynamic references because the moment the reference is picked up, its FormID becomes invalid and, of course, using this function (or any other) on an invalid FormID will not return anything useful.
- This function does not work on implicit references, i.e. it is required to provide a reference before the dot (notice that the function is described as reference.HasBeenPickedUp and not as [reference].HasBeenPickedUp)