- Found in:
- Dylbills PE
Description
Documentation Comment
Position Player events are triggered whenever the player enters a new space, i.e fast traveling, going through a load door or a script calling MoveTo on the player.
OnPositionPlayerStart is right before the Loading Menu opens.
If the player is moving to an exterior the akWorldSpace will exist but the akInteriorCell will not and vice versa for moving to an interior.
The fastTravelMarker will only exist if the player fast travels or Game.FastTravel(objectReference destination) is called
The moveToRef will only exist if moveTo is called on the player (can be from a papyrus script or console command), ie Game.GetPlayer().moveTo(ref)
Also note that the parameters for these PositionPlayer events only work on Skyrim SE and AE, not VR.
The events will be sent on VR but the parameters will all be none
Parameters
ObjectReferencefastTravelMarker
ObjectReferencemoveToRef
WorldSpaceakWorldSpace
CellakInteriorCell
Examples
Auto-Generated Example
Scriptname MyCoolScript extends DbSkseEvents
event OnPositionPlayerStartGlobal(ObjectReference fastTravelMarker, ObjectReference moveToRef, WorldSpace akWorldSpace, Cell akInteriorCell)
Debug.trace("Event received - OnPositionPlayerStartGlobal: fastTravelMarker = " + fastTravelMarker + " moveToRef = " + moveToRef + " akWorldSpace = " + akWorldSpace + " akInteriorCell = " + akInteriorCell)
endEvent