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

GetDoorDestination

 * Returns the ObjectReference that is linked to the  door ref

ObjectReference Function GetDoorDestination(ObjectReference akRef) global native


 * Credit: powerofthree

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

SetDoorDestination

 * Sets  as the new linked ObjectReference for the   door ref

bool Function SetDoorDestination(ObjectReference akRef, ObjectReference akDestinationRef) global native


 * Credit: powerofthree

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%;"|


 * }