Class TESActorBaseExtensions
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.Game.dll
Provides extension members for ITESActorBase.
public static class TESActorBaseExtensions
- Inheritance
-
TESActorBaseExtensions
- Inherited Members
Methods
SetEssential<TActorBase>(TActorBase, bool)
Makes the actor base essential or not, as Papyrus's SetEssential does.
public static void SetEssential<TActorBase>(this TActorBase actorBase, bool essential = true) where TActorBase : notnull, ITESActorBase
Parameters
actorBaseTActorBaseessentialboolWhether the actor base is essential. True also clears the protected flag, since the two flags are exclusive.
Type Parameters
TActorBase
Remarks
Call on the game's thread.
SetInvulnerable<TActorBase>(TActorBase, bool)
Makes the actor base invulnerable or not, as Papyrus's SetInvulnerable does.
public static void SetInvulnerable<TActorBase>(this TActorBase actorBase, bool invulnerable = true) where TActorBase : notnull, ITESActorBase
Parameters
actorBaseTActorBaseinvulnerablebool
Type Parameters
TActorBase
Remarks
Call on the game's thread.
SetProtected<TActorBase>(TActorBase, bool)
Makes the actor base protected or not, as Papyrus's SetProtected does.
public static void SetProtected<TActorBase>(this TActorBase actorBase, bool isProtected = true) where TActorBase : notnull, ITESActorBase
Parameters
actorBaseTActorBaseisProtectedboolWhether the actor base is protected. True also clears the essential flag, since the two flags are exclusive.
Type Parameters
TActorBase
Remarks
Call on the game's thread.