Difference between revisions of "GetFirstRef"
Jump to navigation
Jump to search
Added InactiveRef flag
imported>Haama (→Notes: Inactive references) |
imported>Haama (Added InactiveRef flag) |
||
|
'''Syntax:'''
(reference:ref) GetFirstRef ''type:short'' ''cellDepth:short'' ''includeInactiveRefs:short''
Returns the first reference in the current cell; use with [[GetNextRef]] to scan all of the cell's references.. A type can optionally be supplied to return only references matching that type. Additionally, you can pass 69 for actors and 70 for inventory items. An optional cell depth can be supplied to specify the number of adjacent cells to scan in exteriors; a cell depth of 1 scans the player's current cell plus 8 adjacent cells, a depth of 2 scans the player's cell plus 25 adjacent cells. By default, inactive references to items which were previously picked up by an actor are ignored; passing 1 for the third parameter will force those references to be included.
'''Example'''
| |||