Difference between revisions of "ForceRefTo - ReferenceAlias"
Jump to navigation
Jump to search
imported>JLundin |
imported>DayDreamer m (→See Also: match ForceLocationTo - LocationAlias) |
||
Line 28: | Line 28: | ||
== See Also == | == See Also == | ||
*[[ReferenceAlias Script]] | *[[ReferenceAlias Script]] | ||
*[[Clear - ReferenceAlias]] | |||
*[[ForceLocationTo_-_LocationAlias|ForceLocationTo]] | *[[ForceLocationTo_-_LocationAlias|ForceLocationTo]] |
Revision as of 10:58, 20 November 2013
Member of: ReferenceAlias Script
Forces this alias to use the specified reference.
Syntax
Function ForceRefTo(ObjectReference akNewRef) native
Parameters
- akNewRef: The ObjectReference to tell this alias to use
Return Value
None.
Examples
; Force the alias to use us as the reference (if script extends ObjectReference)
Alias_JohnDoe.ForceRefTo(self)
Notes
- Use of this function causes actors in any current running scene in the quest to re-eval their packages. Calling this multiple times in a row can result in actors in running scenes to lose their scene package permanently and result in brokenness. Do not call this multiple times in a row while a scene is running in the quest whose alias you are forcing to.