[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
GetParentCellOwningFactionRequiredRank
Jump to navigation
Jump to search
A command for the Oblivion Script Extender
Syntax:
(rank:short) ref.GetParentCellOwningFactionRequiredRank
Returns the rank required for ownership of the calling reference's parent cell.
Example
ref rOwner short fRank ... set rOwner to SomeRef.GetOwner if ((GetObjectType rOwner) == 6) set fRank to (GetOwningFactionRequiredRank)
This returns the Faction Rank to fRank, if the owner of the item is a faction.
Notes[edit | edit source]
- If the cell has a set Owner NPC, all items in the cell are owned by the NPC. However, the individual item's owner will override this, so always check GetOwner first.
ref pOwner short fRank ... set rOwner to SomeRef.GetOwner if (rOwner == 0) set rOwner to SomeRef.GetParentCellOwner if ((GetObjectType rOwner) == 6) set fRank to SomeRef.GetParentCellOwningFactionRequiredRank endif elseif ((GetObjectType rOwner) == 6) set fRank to SomeRef.GetOwningFactionRequiredRank endif if rOwner ...
- If you want to know if an actor owns an item or can legally activate it, use IsOffLimits instead.