Background for Skyrim SE
Member of the Quest script
eventOnStoryChangeLocation(ObjectReferenceakActor, LocationakOldLocation, LocationakNewLocation)

Description

Wiki Description

Event called when this quest is started via a change location story manager event.


Parameters

ObjectReferenceakActor

CK Wiki Description

The ObjectReference that changed locations.

LocationakOldLocation

CK Wiki Description

The Location that the object left.

LocationakNewLocation

CK Wiki Description

The Location that the object arrived at.


Examples

Event OnStoryChangeLocation(ObjectReference akActor, Location akOldLocation, Location akNewLocation)
  Debug.Trace(akActor + " moved from " + akOldLocation + " to " + akNewLocation)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Quest

event OnStoryChangeLocation(ObjectReference akActor, Location akOldLocation, Location akNewLocation)
    Debug.trace("Event received - OnStoryChangeLocation: akActor = " + akActor + " akOldLocation = " + akOldLocation + " akNewLocation = " + akNewLocation)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.