Class LocationScript
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
Functions and comments from Location.psc.
public static class LocationScript
- Inheritance
-
LocationScript
- Inherited Members
Properties
Dispatcher
The dispatcher that binds this script to a form and calls the functions and properties that have no generated member.
public static PapyrusScriptDispatcher Dispatcher { get; }
Property Value
Methods
GetKeywordData(PapyrusScript<Location>, IPapyrusKeyword)
Returns the float value attached to the specified keyword attached to this location
public static Task<float> GetKeywordData(this PapyrusScript<Location> self, IPapyrusKeyword akKeyword)
Parameters
selfPapyrusScript<Location>akKeywordIPapyrusKeyword
Returns
GetParent(PapyrusScript<Location>)
SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
public static Task<Location?> GetParent(this PapyrusScript<Location> self)
Parameters
selfPapyrusScript<Location>
Returns
GetRefTypeAliveCount(PapyrusScript<Location>, LocationRefType)
Returns the number of alive references matching the specified reference type
public static Task<int> GetRefTypeAliveCount(this PapyrusScript<Location> self, LocationRefType akRefType)
Parameters
selfPapyrusScript<Location>akRefTypeLocationRefType
Returns
GetRefTypeDeadCount(PapyrusScript<Location>, LocationRefType)
Returns the number of dead references matching the specified reference type
public static Task<int> GetRefTypeDeadCount(this PapyrusScript<Location> self, LocationRefType akRefType)
Parameters
selfPapyrusScript<Location>akRefTypeLocationRefType
Returns
HasCommonParent(PapyrusScript<Location>, Location, IPapyrusKeyword?)
Returns if these two locations have a common parent - filtered with the keyword, if provided
public static Task<bool> HasCommonParent(this PapyrusScript<Location> self, Location akOther, IPapyrusKeyword? akFilter = null)
Parameters
selfPapyrusScript<Location>akOtherLocationakFilterIPapyrusKeyword
Returns
HasRefType(PapyrusScript<Location>, LocationRefType)
Returns if this location has the specified reference type
public static Task<bool> HasRefType(this PapyrusScript<Location> self, LocationRefType akRefType)
Parameters
selfPapyrusScript<Location>akRefTypeLocationRefType
Returns
IsChild(PapyrusScript<Location>, Location)
Returns whether the other location is a child of this one
public static Task<bool> IsChild(this PapyrusScript<Location> self, Location akOther)
Parameters
selfPapyrusScript<Location>akOtherLocation
Returns
IsCleared(PapyrusScript<Location>)
Returns whether this location is flagged as "cleared" or not
[Obsolete("Uses the Papyrus virtual machine. Prefer Location.IsCleared().", DiagnosticId = "SKYRIMFORGE0002")]
public static Task<bool> IsCleared(this PapyrusScript<Location> self)
Parameters
selfPapyrusScript<Location>
Returns
IsLoaded(PapyrusScript<Location>)
Is this location loaded in game?
[Obsolete("Uses the Papyrus virtual machine. Prefer Location.IsLoaded().", DiagnosticId = "SKYRIMFORGE0002")]
public static Task<bool> IsLoaded(this PapyrusScript<Location> self)
Parameters
selfPapyrusScript<Location>
Returns
IsSameLocation(PapyrusScript<Location>, Location, IPapyrusKeyword?)
Returns true if the calling location is the same as the supplied location - if an optional keyword is supplied, it also returns true if the locations share a parent with that keyword, or if either location is a child of the other and the other has that keyword.
public static Task<bool> IsSameLocation(this PapyrusScript<Location> self, Location akOtherLocation, IPapyrusKeyword? akKeyword = null)
Parameters
selfPapyrusScript<Location>akOtherLocationLocationakKeywordIPapyrusKeyword
Returns
SetCleared(PapyrusScript<Location>, bool)
Sets this location as cleared or not
public static Task SetCleared(this PapyrusScript<Location> self, bool abCleared = true)
Parameters
selfPapyrusScript<Location>abClearedbool
Returns
SetKeywordData(PapyrusScript<Location>, IPapyrusKeyword, float)
Sets the specified keyword's data on the location
public static Task SetKeywordData(this PapyrusScript<Location> self, IPapyrusKeyword akKeyword, float afData)
Parameters
selfPapyrusScript<Location>akKeywordIPapyrusKeywordafDatafloat