Mod:Lighthouse Papyrus Extender/ObjectReference

ObjectReference Functions
{| style="width:100%;"
 * valign="top" style="width: 85%;" |

GetAnimationLength

 * Returns the total length in seconds of the animation that's currently being played by

float Function GetAnimationLength(ObjectReference akRef) global native

GetAnimationTime

 * Returns the progress in seconds of the animation that's currently being played by

float Function GetAnimationTime(ObjectReference akRef) global native

GetClosestActorFromRef

 * Returns the closest Actor from ; with optional parameters to ingnore the Player or include dead NPCs

Actor Function GetClosestActorFromRef(ObjectReference akRef, bool abIgnorePlayer, bool abIncludeDead) global native

GetInventoryItemsAsArray

 * Returns a Form array of all items in 's inventory

Form[] Function GetInventoryItemsAsArray(ObjectReference akRef) global native

IsInWater

 * Returns whether the ObjectReference  is in water

bool Function IsInWater(ObjectReference akRef) global native

SetHealthPercent

 * Sets the Health percent of
 * 1.0 is equivalent to 100%

Function SetHealthPercent(ObjectReference akRef, float afHealthPercent) global native


 * valign="top" style="width: 15%;"|


 * }