Difference between revisions of "ReferenceAlias Script"
Jump to navigation
Jump to search
imported>DayDreamer m (→Member Functions: change Alias to Shorthand, as these are about aliases) |
imported>CraftySentinel m (→Member Functions: Reverted to List) |
||
Line 20: | Line 20: | ||
== Member Functions == | == Member Functions == | ||
:'''[[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]](Form ''akFilter'')''' | |||
:*Adds an inventory event filter to this alias. | |||
:'''[[Clear - ReferenceAlias|Clear]]()''' | |||
:*Clears this alias from pointing at anything. | |||
:'''Bool [[ForceRefIfEmpty - ReferenceAlias|ForceRefIfEmpty]](ObjectReference ''akNewRef'')''' | |||
:*Tries to force a reference into the alias, but only if it's already empty. | |||
:'''[[ForceRefTo - ReferenceAlias|ForceRefTo]](ObjectReference ''akNewRef'')''' | |||
:*Forces this alias to use the specified [[ObjectReference Script|ObjectReference]] | |||
:'''Actor [[GetActorReference - ReferenceAlias|GetActorRef]]()''' | |||
:*Shorthand for GetActorReference(). | |||
:'''Actor [[GetActorReference - ReferenceAlias|GetActorReference]]()''' | |||
:*Shorthand for GetReference() as [[Actor Script|Actor]]. | |||
:'''ObjectReference [[GetReference - ReferenceAlias|GetRef]]()''' | |||
:*Shorthand for GetReference(). | |||
:'''ObjectReference [[GetReference - ReferenceAlias|GetReference]]()''' | |||
:*Attempts to retrieve the [[ObjectReference Script|ObjectReference]] that this alias is pointing at | |||
:'''[[RemoveAllInventoryEventFilters - ObjectReference|RemoveAllInventoryEventFilters]]()''' | |||
:*Remove all inventory event filters on this alias. | |||
:'''[[RemoveInventoryEventFilter - ObjectReference|RemoveInventoryEventFilter]](Form ''akFilter'')''' | |||
:*Remove a specific inventory event filter. | |||
:'''Bool [[TryToAddToFaction - ReferenceAlias|TryToAddToFaction]](Faction ''FactionToAddTo'')''' | |||
:*Attempts to add the reference this alias points to to a faction | |||
:'''Bool [[TryToClear - ReferenceAlias|TryToClear]]()''' | |||
:*Attempts to clear this alias | |||
:'''Bool [[TryToDisable - ReferenceAlias|TryToDisable]]()''' | |||
:*Attempts to disable the reference this alias points at | |||
:'''Bool [[TryToDisableNoWait - ReferenceAlias|TryToDisableNoWait]]()''' | |||
:*Attempts to disable the reference this alias points at (the no-wait version) | |||
:'''Bool [[TryToEnable - ReferenceAlias|TryToEnable]]()''' | |||
:*Attempts to enable the reference this alias points at | |||
:'''Bool [[TryToEnableNoWait - ReferenceAlias|TryToEnableNoWait]]()''' | |||
:*Attempts to enable the reference this alias points at (no-wait version) | |||
:'''Bool [[TryToEvaluatePackage - ReferenceAlias|TryToEvaluatePackage]]()''' | |||
:*Attempts to get the actor this alias points at to re-evaluate his package stack | |||
:'''Bool [[TryToKill - ReferenceAlias|TryToKill]]()''' | |||
:*Attempts to kill the actor this alias points at | |||
:'''Bool [[TryToMoveTo - ReferenceAlias|TryToMoveTo]](ObjectReference ''RefToMoveTo'')''' | |||
:*Attempts to move the reference this alias points to to the target reference | |||
:'''Bool [[TryToRemoveFromFaction - ReferenceAlias|TryToRemoveFromFaction]](Faction ''FactionToRemoveFrom'')''' | |||
:*Attempts to remove the reference this alias points to from a faction | |||
:'''Bool [[TryToReset - ReferenceAlias|TryToReset]]()''' | |||
:*Attempts to reset the reference this alias points at | |||
:'''Bool [[TryToStopCombat - ReferenceAlias|TryToStopCombat]]()''' | |||
:*Attempts to remove the actor this alias points at from combat | |||
== Events == | == Events == |
Revision as of 22:57, 2 February 2014
Extends: Alias Script
Script for the manipulation of reference aliases.
Definition
ScriptName ReferenceAlias extends Alias
Properties
None
Global Functions
None
Member Functions
- AddInventoryEventFilter(Form akFilter)
- Adds an inventory event filter to this alias.
- Clear()
- Clears this alias from pointing at anything.
- Bool ForceRefIfEmpty(ObjectReference akNewRef)
- Tries to force a reference into the alias, but only if it's already empty.
- ForceRefTo(ObjectReference akNewRef)
- Forces this alias to use the specified ObjectReference
- Actor GetActorRef()
- Shorthand for GetActorReference().
- Actor GetActorReference()
- Shorthand for GetReference() as Actor.
- ObjectReference GetRef()
- Shorthand for GetReference().
- ObjectReference GetReference()
- Attempts to retrieve the ObjectReference that this alias is pointing at
- RemoveAllInventoryEventFilters()
- Remove all inventory event filters on this alias.
- RemoveInventoryEventFilter(Form akFilter)
- Remove a specific inventory event filter.
- Bool TryToAddToFaction(Faction FactionToAddTo)
- Attempts to add the reference this alias points to to a faction
- Bool TryToClear()
- Attempts to clear this alias
- Bool TryToDisable()
- Attempts to disable the reference this alias points at
- Bool TryToDisableNoWait()
- Attempts to disable the reference this alias points at (the no-wait version)
- Bool TryToEnable()
- Attempts to enable the reference this alias points at
- Bool TryToEnableNoWait()
- Attempts to enable the reference this alias points at (no-wait version)
- Bool TryToEvaluatePackage()
- Attempts to get the actor this alias points at to re-evaluate his package stack
- Bool TryToKill()
- Attempts to kill the actor this alias points at
- Bool TryToMoveTo(ObjectReference RefToMoveTo)
- Attempts to move the reference this alias points to to the target reference
- Bool TryToRemoveFromFaction(Faction FactionToRemoveFrom)
- Attempts to remove the reference this alias points to from a faction
- Bool TryToReset()
- Attempts to reset the reference this alias points at
- Bool TryToStopCombat()
- Attempts to remove the actor this alias points at from combat
Events
ReferenceAliases receive events from the ObjectReference they are pointing at.
ReferenceAliases may also receive additional events if they are pointing at an Actor.