Mod:Lighthouse Papyrus Extender/Actor

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

AreHostileActorsInRange

 * Checks if there are any Actors in the provided range with  as the origin point

bool Function AreHostileActorsInRange(Actor akActor, float maxDistance) global native

EndDialogue

 * Ends 's dialogue

Function EndDialogue(Actor akActor) global native

ExitCover

 * Forces  out of cover

Function ExitCover(Actor akActor) global native

GetActiveEffects

 * Gets all current active effects on  with the optional   parameter to include effects that are inactive

MagicEffect[] Function GetActiveEffects(Actor akActor, bool includeInactive = false) global native

GetActorFactionsFromList

 * Returns an array with factions from  that   belongs to

Faction[] Function GetActorFactionsFromList(Actor akActor, Faction[] factionList) global native

GetActorsByVerticalDistance

 * Returns an array of Actors that fall in the range between  and   with   as the origin point. Actors that are further away than   will not be included

Actor[] Function GetActorsByVerticalDistance(ObjectReference akRef, float upDistance, float downDistance, float maxRadius) global native

GetActorsInRange

 * Returns an array of Actors that are up to - and including -  units away from

Actor[] Function GetActorsInRange(ObjectReference akRef, float maxDistance) global native

GetActorsTargetingActor

 * Returns an array of all Actors that are targetting

Actor[] Function GetActorsTargetingActor(Actor akActor) global native

GetClosestActorWithKeyword

 * Returns the closest Actor with the  Keyword to the Player; optionally including dead Actors

Actor Function GetClosestActorWithKeyword(Keyword akKeyword, bool includeDead) global native

GetCombatStyle

 * Returns the CombatStyle currently in-use by

CombatStyle Function GetCombatStyle(Actor akActor) global native

GetEncumbranceRate

 * Returns the ratio between 's inventory weight and their max carry weight as a % e.g. 75.0 if inventory weight is 75 and CarryWeight is 100. If  's CarryWeight is below 1, then CarryWeight will be considered as 1 instead

float Function GetEncumbranceRate(Actor akActor) global native

GetEquippedWeight

 * Returns the current weight of all items in 's inventory

float Function GetEquippedWeight(Actor akActor) global native

GetFactions

 * Returns an array of Factions that  belongs to

Faction[] Function GetFactions(Actor akActor) global native

GetHighActorsByRace

 * Returns an array of Actors in the High Processing-Level that are of the  Race

Actor[] Function GetHighActorsByRace(Race akRace, bool includeDead) global native

GetHighActorsHostileToActor

 * Returns an array of Actors in the High Processing-Level that are hostile to

Actor[] Function GetHighActorsHostileToActor(Actor akActor, bool includeDead) global native

GetHighActorsInCombat

 * Returns an array of Actors in the High Processing-Level that are currently in combat

Actor[] Function GetHighActorsInCombat global native

GetHighDeadActors

 * Returns an array of Actors in the High Processing-Level that are currently dead with the optional  parameter

Actor[] Function GetHighDeadActors(bool notEssential) global native

GetKnockState

 * Returns the KnockState of  as one of the following integer values:

int Function GetKnockState(Actor akActor) global native

GetLifeState

 * Returns the LifeState of  as one of the following integer values:

int Function GetLifeState(Actor akActor) global native

GetTimeDead

 * Returns how long  has been dead
 * Returns 0.0f if  is alive

float Function GetTimeDead(Actor akActor) global native


 * Credit: powerofthree

GetTimeOfDeath

 * Returns the time of death in game days passed

float Function GetTimeOfDeath(Actor akActor) global native


 * Credit: powerofthree

GetVendorFaction

 * Returns the Vendor Faction of

Faction Function GetVendorFaction(Actor akActor) global native

GetWeaponAmmoCount

 * Returns the amount of ammo that's currently equipped by

int Function GetWeaponAmmoCount(Actor akActor) global native

HasFactionFromList

 * Returns whether  has a Faction listed in the   array

bool Function HasFactionFromList(Actor akActor, Faction[] factionList) global native

IsCrippled

 * Returns whether  has a crippled limb

bool Function IsCrippled(Actor akActor) global native

IsFleeing

 * Returns whether  is fleeing from combat

bool Function IsFleeing(Actor akActor) global native

IsFollowing

 * Returns whether  is following anyone

bool Function IsFollowing(Actor akActor) global native

IsFollowingActor

 * Returns whether  is following

bool Function IsFollowingActor(Actor followerActor, Actor akActor) global native

IsInKillMove

 * Returns whether  is currently performing a kill-move

bool Function IsInKillMove(Actor akActor) global native

IsInteracting

 * Returns whether  is currently interacting with something

bool Function IsInteracting(Actor akActor) global native

IsJumping

 * Returns whether  is currently jumping

bool Function IsJumping(Actor akActor) global native

IsKeywordOnWeapon

 * Returns whether 's equipped weapon has the   Keyword

bool Function IsKeywordOnWeapon(Actor akActor, Keyword akKeyword) global native

IsPathing

 * Returns whether  is currently pathing

bool Function IsPathing(Actor akActor) global native

IsPathingComplete

 * Returns whether 's pathing is complete

bool Function IsPathingComplete(Actor akActor) global native

IsPathValid

 * Returns whether 's path is valid

bool Function IsPathValid(Actor akActor) global native

IsPlayerDetectedByHostile

 * Returns whether the Player is detected by a hostile Actor

bool Function IsPlayerDetectedByHostile(Actor akActor) global native

IsQuadruped

 * Returns whether  is a quadruped. Including but not limited to creatures such as | Radscorpions

bool Function IsQuadruped(Actor akActor) global native

IsStaggered

 * Returns whether  is currently staggered

bool Function IsStaggered(Actor akActor) global native

IsTakingHealthDamage

 * Returns whether  is currently taking health damage

bool Function IsTakingHealthDamage(Actor akActor) global native

IsTakingRadDamage

 * Returns whether  is currently taking radiation damage

bool Function IsTakingRadDamage(Actor akActor) global native

IsTresspassing

 * Returns whether  is currently tresspassing

bool Function IsTresspassing(Actor akActor) global native

IsUnderwater

 * Returns whether  is currently underwater

bool Function IsUnderwater(Actor akActor) global native

ReEquipAll

 * Re-equips 's equipment

Function ReEquipAll(Actor akActor) global native

RemoveActorFromArray

 * Removes  from the   Actor array

Actor[] Function RemoveActorFromArray(Actor[] actorArray, Actor akActor) global native

ResetInventory

 * Resets 's inventory with an optional   parameter to only reset leveled items

Function ResetInventory(Actor akActor, bool leveledOnly) global native

SetActorAttackingDisabled

 * Controls whether  is able to attack based on the value passed to

Function SetActorAttackingDisabled(Actor akActor, bool bValue) global native

SetDoNotShowOnStealthMeter

 * Hides  from the stealth meter

Function SetDoNotShowOnStealthMeter(Actor akActor, bool bValue) global native


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


 * }