Table of Contents

Papyrus Functions with Direct Members

A Papyrus function called through a form's Papyrus property runs in the Papyrus virtual machine a frame or two later, usually on one of the game's worker threads. Each member below does the function's work, or part of it, directly on the calling thread.

Members That Do the Same Work

The Papyrus member declares warning SF0004, which names the member.

Papyrus Member
Actor.AddShout Actor.AddShout(Shout)
Actor.AllowBleedoutDialogue Actor.AllowBleedoutDialogue(bool)
Actor.AllowPCDialogue Actor.AllowPCDialogue(bool)
Actor.CanFlyHere Actor.CanFlyHere()
Actor.ClearArrested Actor.ClearArrested()
Actor.ClearExpressionOverride Actor.ClearExpressionOverride()
Actor.ClearExtraArrows Actor.ClearExtraArrows()
Actor.DamageActorValue Actor.DamageActorValue(ActorValue, float)
Actor.EnableAI Actor.EnableAI(bool)
Actor.EquipShout ActorEquipManager.EquipShout(IActor, Shout)
Actor.ForceActorValue Actor.ForceActorValue(ActorValue, float)
Actor.GetActorBase Actor.GetActorBase()
Actor.GetActorValue Actor.GetActorValue(ActorValue)
Actor.GetActorValueMax Actor.GetActorValueMax(ActorValue)
Actor.GetActorValuePercentage Actor.GetActorValuePercentage(ActorValue)
Actor.GetBaseActorValue Actor.GetBaseActorValue(ActorValue)
Actor.GetCombatTarget Actor.ActorRuntimeData.CurrentCombatTarget
Actor.GetCrimeFaction Actor.GetCrimeFaction()
Actor.GetCurrentPackage Actor.GetCurrentPackage()
Actor.GetFactionRank Actor.GetFactionRank(Faction)
Actor.GetFactionReaction Actor.GetFactionReaction(IActor)
Actor.GetKiller Actor.GetKiller()
Actor.GetLevel Actor.GetLevel()
Actor.GetPlayerControls Actor.GetPlayerControls()
Actor.GetRace Actor.GetRace()
Actor.GetVoiceRecoveryTime Actor.GetVoiceRecoveryTime()
Actor.GetWarmthRating Actor.GetWarmthRating()
Actor.HasLOS Actor.HasLOS(IObjectReference)
Actor.HasMagicEffect Actor.HasMagicEffect(MagicEffect)
Actor.HasMagicEffectWithKeyword MagicTarget.HasMagicEffectWithKeyword(IKeyword, out MagicItem?)
Actor.HasParentRelationship Actor.HasParentRelationship(IActor)
Actor.HasPerk Actor.HasPerk(Perk)
Actor.IsAIEnabled Actor.IsAIEnabled()
Actor.IsAlarmed Actor.IsAlarmed()
Actor.IsBeingRidden Actor.IsBeingRidden()
Actor.IsCommandedActor Actor.IsCommandedActor()
Actor.IsDead ObjectReference.IsDead(notEssential: true)
Actor.IsDetectedBy Actor.IsDetectedBy(IActor)
Actor.IsDoingFavor Actor.IsDoingFavor()
Actor.IsEssential Actor.IsEssential()
Actor.IsGhost Actor.IsGhost()
Actor.IsGuard Actor.IsGuard()
Actor.IsHostileToActor Actor.IsHostileToActor(Actor)
Actor.IsInCombat Actor.IsInCombat()
Actor.IsInFaction Actor.IsInFaction(Faction)
Actor.IsInKillMove Actor.IsInKillMove()
Actor.IsOnMount Actor.IsOnMount()
Actor.IsOverEncumbered Actor.IsOverEncumbered()
Actor.IsPlayerTeammate Actor.IsPlayerTeammate()
Actor.IsRunning Actor.IsRunning()
Actor.IsSneaking Actor.IsSneaking()
Actor.IsSprinting Actor.AsActorState().IsSprinting()
Actor.IsSwimming Actor.AsActorState().IsSwimming()
Actor.IsTrespassing Actor.IsTrespassing()
Actor.IsWeaponDrawn Actor.AsActorState().IsWeaponDrawn()
Actor.ModActorValue Actor.ModActorValue(ActorValue, float)
Actor.OpenInventory Actor.OpenInventory(bool)
Actor.QueueNiNodeUpdate Actor.DoReset3D(updateWeight: false)
Actor.RemoveFromFaction Actor.RemoveFromFaction(Faction)
Actor.RemovePerk Actor.RemovePerk(Perk)
Actor.RemoveSpell Actor.RemoveSpell(Spell)
Actor.ResetAI Actor.ResetAI()
Actor.RestoreActorValue Actor.RestoreDamage(ActorValue, float)
Actor.SendTrespassAlarm Actor.SendTrespassAlarm(IActor)
Actor.SetActorValue Actor.SetActorValue(ActorValue, float)
Actor.SetExpressionOverride Actor.SetExpressionOverride(int, int)
Actor.StopCombat Actor.StopCombat()
ActorBase.GetHeight ActorBase.GetHeight()
ActorBase.GetNumOverlayHeadParts ActorBase.GetNumBaseOverlays()
ActorBase.GetRace ActorBase.GetRace()
ActorBase.SetEssential ActorBase.SetEssential(bool)
ActorBase.SetInvulnerable ActorBase.SetInvulnerable(bool)
ActorBase.SetProtected ActorBase.SetProtected(bool)
Ammo.IsBolt Ammo.IsBolt()
Book.GetSpell Book.GetSpell()
Book.IsRead Book.IsRead()
Cell.GetActorOwner Cell.GetActorOwner()
Cell.GetFactionOwner Cell.GetFactionOwner()
Cell.IsAttached Cell.IsAttached()
Cell.SetFogPlanes Cell.SetFogPlanes(float, float)
Cell.SetFogPower Cell.SetFogPower(float)
Cell.SetPublic Cell.SetPublic(bool)
Debug.CenterOnCell GameTarget.CenterOnCell(string)
Debug.MessageBox IMessageBoxPrompter.ShowAsync
Debug.Notification IDebug.Notification
Debug.SendAnimationEvent ObjectReference.SendAnimationEvent(string)
Faction.CanPayCrimeGold Faction.CanPayCrimeGold()
Faction.GetCrimeGold Faction.GetCrimeGold()
Faction.GetCrimeGoldNonViolent Faction.GetCrimeGoldNonViolent()
Faction.GetCrimeGoldViolent Faction.GetCrimeGoldViolent()
Faction.GetInfamy Faction.GetInfamy()
Faction.GetInfamyNonViolent Faction.GetInfamyNonViolent()
Faction.GetInfamyViolent Faction.GetInfamyViolent()
Faction.GetStolenItemValueCrime Faction.GetStolenItemValueCrime()
Faction.GetStolenItemValueNoCrime Faction.GetStolenItemValueNoCrime()
Faction.IsFactionInCrimeGroup Faction.IsFactionInCrimeGroup(Faction)
Faction.IsPlayerExpelled Faction.IsPlayerExpelled()
Faction.IsVendor Faction.IsVendor()
Faction.ModCrimeGold Faction.ModCrimeGold(int, bool)
Faction.PlayerPayCrimeGold Faction.PlayerPayCrimeGold(bool, bool)
Faction.SendPlayerToJail Faction.SendPlayerToJail(bool, bool)
Faction.SetAlly Faction.SetAlly(Faction, bool, bool)
Faction.SetCrimeGold Faction.SetCrimeGold(int)
Faction.SetCrimeGoldViolent Faction.SetCrimeGoldViolent(int)
Faction.SetEnemy Faction.SetEnemy(Faction, bool, bool)
Form.GetGoldValue Form.GetGoldValue()
Form.GetName Form.GetName()
Form.HasKeyword Form.HasKeyword(IKeyword)
Form.HasWorldModel Form.HasWorldModel()
FormList.AddForm FormList.AddForm(Form)
FormList.HasForm FormList.HasForm(Form)
Game.GetForm Form.LookupByID(uint)
Game.GetNumTintsByType PlayerCharacter.GetNumTints(uint)
Game.SetPlayerAIDriven PlayerCharacter.SetAIDriven(bool)
Game.ShakeCamera GameTarget.ShakeCamera(IObjectReference, float, float)
Game.UpdateThirdPerson PlayerCamera.UpdateThirdPerson(bool)
GlobalVariable.Value GlobalVariable.Value
HeadPart.IsExtraPart HeadPart.IsExtraPart()
ImageSpaceModifier.Apply ImageSpaceModifier.Apply(float)
ImageSpaceModifier.PopTo ImageSpaceModifier.PopTo(ImageSpaceModifier, float)
ImageSpaceModifier.Remove ImageSpaceModifier.Remove()
ImageSpaceModifier.RemoveCrossFade ImageSpaceModifierInstanceForm.StopCrossFade(float)
Ingredient.LearnAllEffects Ingredient.LearnAllEffects()
Location.IsCleared Location.IsCleared()
Location.IsLoaded Location.IsLoaded()
ObjectReference.Activate ObjectReference.Activate(IObjectReference, bool)
ObjectReference.BlockActivation ObjectReference.BlockActivation(bool)
ObjectReference.ClearDestruction ObjectReference.ClearDestruction()
ObjectReference.CreateDetectionEvent ObjectReference.CreateDetectionEvent(IActor, int)
ObjectReference.GetActorOwner ObjectReference.GetActorOwner()
ObjectReference.GetCurrentLocation ObjectReference.GetCurrentLocation()
ObjectReference.GetCurrentScene ObjectReference.GetCurrentScene()
ObjectReference.GetDisplayName ObjectReference.GetDisplayFullName()
ObjectReference.GetDistance ObjectReference.GetDistance(other, disabledRefs: true)
ObjectReference.GetEditorLocation ObjectReference.GetEditorLocation()
ObjectReference.GetEnchantment ObjectReference.GetEnchantment()
ObjectReference.GetFactionOwner ObjectReference.GetFactionOwner()
ObjectReference.GetHeight ObjectReference.GetHeight()
ObjectReference.GetKey ObjectReference.Key
ObjectReference.GetLinkedRef ObjectReference.GetLinkedRef(Keyword)
ObjectReference.GetOpenState BGSOpenCloseForm.GetOpenState(IObjectReference)
ObjectReference.GetParentCell ObjectReference.ParentCell
ObjectReference.GetPositionX ObjectReference.GetPositionX()
ObjectReference.GetPositionY ObjectReference.GetPositionY()
ObjectReference.GetPositionZ ObjectReference.GetPositionZ()
ObjectReference.GetScale ObjectReference.GetScale()
ObjectReference.Is3DLoaded ObjectReference.Is3DLoaded()
ObjectReference.IsActivationBlocked ObjectReference.IsActivationBlocked()
ObjectReference.IsDisabled Form.IsDisabled()
ObjectReference.IsInInterior ObjectReference.IsInInterior
ObjectReference.IsLocked ObjectReference.IsLocked()
ObjectReference.IsOffLimits ObjectReference.IsOffLimits()
ObjectReference.Lock ObjectReference.Lock(bool, bool)
ObjectReference.PlayImpactEffect ObjectReference.PlayImpactEffect(BGSImpactManager, ImpactDataSet, string, float, float, float, float, bool, bool)
ObjectReference.SetAnimationVariableBool ObjectReference.SetAnimationVariableBool(string, bool)
ObjectReference.SetAnimationVariableFloat ObjectReference.SetAnimationVariableFloat(string, float)
ObjectReference.SetAnimationVariableInt ObjectReference.SetAnimationVariableInt(string, int)
ObjectReference.SetDisplayName ObjectReference.SetDisplayName(string, bool)
ObjectReference.SetLockLevel ObjectReference.SetLockLevel(int)
ObjectReference.SetPosition ObjectReference.SetPosition(float, float, float)
ObjectReference.SetScale ObjectReference.SetScale(float)
ObjectReference.X GetPositionX()
ObjectReference.Y GetPositionY()
ObjectReference.Z GetPositionZ()
Quest.IsActive Quest.IsActive()
Quest.IsCompleted Quest.IsCompleted()
Quest.IsRunning Quest.IsRunning()
Quest.IsStarting Quest.IsStarting()
Quest.IsStopped Quest.IsStopped()
Quest.IsStopping Quest.IsStopping()
Quest.Reset Quest.Reset()
Quest.Start Quest.Start()
Quest.Stop Quest.Stop()
Race.IsChildRace Race.IsChildRace()
Scene.IsActionComplete Scene.IsActionComplete(int)
Sound.Play Sound.Play(BSAudioManager, IObjectReference)
Sound.PlayAndWait Sound.PlayAndWaitAsync(BSAudioManager, IUtility, IObjectReference, CancellationToken)
Spell.GetEffectiveMagickaCost MagicItem.CalculateMagickaCost(Actor)
Utility.Wait IUtility.WaitAsync
Weapon.GetMaxRange Weapon.GetMaxRange()
Weapon.GetMinRange Weapon.GetMinRange()
Weapon.GetReach Weapon.GetReach()
Weapon.GetSpeed Weapon.GetSpeed()
Weapon.GetStagger Weapon.GetStagger()
Weapon.IsBow Weapon.IsBow()
Weapon.IsStaff Weapon.IsStaff()
Weather.ForceActive TaskQueueInterface.QueueForceWeather(Weather, bool)
Weather.SetActive Sky.SetWeather(Weather, bool, bool)

Members That Do Part of the Work

The Papyrus function's remarks state the same difference.

Papyrus Member and Difference
Actor.EquipItem ActorEquipManager.EquipObject. Papyrus also applies abPreventRemoval to an item already worn rather than equipping it again and equips a whole stack of ammunition.
Actor.Kill Actor.KillImpl(attacker, 0, true, false). Papyrus calls another game function. It first logs an error and kills nothing for an invulnerable actor that is not a ghost. It sets an actor in the kEssentialDown life state to kAlive before the kill.
Actor.PlayIdle AIProcess.PlayIdle(actor, idle, target) on ActorRuntimeData.CurrentProcess, which makes the same game call with a target while Papyrus passes none. Papyrus logs an error and returns false for an actor with no AI process.
Actor.PlayIdleWithTarget AIProcess.PlayIdle(actor, idle, target) on ActorRuntimeData.CurrentProcess, which makes the same game call. Papyrus logs an error and returns false for an actor with no AI process.
Actor.StartCombat Actor.StartCombat(target). Papyrus queues the start through the task pool. It logs an error and starts nothing if the actor is the player, if the actor or the target is dead or has no AI process, or if the actor is in dialogue and the target is not the player.
Actor.UnequipItem ActorEquipManager.UnequipObject. Papyrus also clears the worn item's prevent-removal flag and shows the player a message unless abSilent is true.
Game.AddPerkPoints PlayerCharacter.GameStatsData.PerkCount, the count Papyrus raises. Papyrus ignores a count of 0 or less and caps the total at 255.
Game.GetFormFromFile TESDataHandler.GetFormIdOrNull(fileName, localFormId), then FormOrNull. It throws for an ID past the file's range, whose high bits Papyrus discards.
Game.GetGameSettingFloat GameSettingCollection.GetFloat(string). It throws for a missing setting or one of another type while Papyrus logs an error and returns 0.
Game.GetGameSettingInt GameSettingCollection.GetInteger(string). It throws for a missing setting or one of another type while Papyrus logs an error and returns 0.
Game.GetGameSettingString GameSettingCollection.GetString(string). It throws for a missing setting or one of another type while Papyrus logs an error and returns an empty string.
Game.GetPlayer GameTarget.Player. It throws before the game creates the player while Papyrus returns None.
ObjectReference.AddItem ObjectReference.AddObjectToContainer. It takes a bound object only and does not expand a leveled list or a form list or update an actor's equipment as Papyrus does.
ObjectReference.Delete Form.SetDelete(true). Papyrus also releases the reference's 3D and, for a created reference, can queue further work through the VM.
ObjectReference.Disable ObjectReference.Disable(). It disables at once while Papyrus queues the disable through the VM and, with abFadeOut, fades the object out first.
ObjectReference.GetAngleX ObjectReference.GetAngleX(). It returns radians while Papyrus returns degrees.
ObjectReference.GetAngleY ObjectReference.GetAngleY(). It returns radians while Papyrus returns degrees.
ObjectReference.GetAngleZ ObjectReference.GetAngleZ(). It returns radians while Papyrus returns degrees.
ObjectReference.IsEnabled !Form.IsDisabled(), the expression this script function returns.
ObjectReference.MoveTo ObjectReference.MoveTo(IObjectReference). It takes no offsets and uses the target's full angle while Papyrus sets an actor's pitch and roll to zero.