Scriptname _00E_PlayerSetUpScript extends ObjectReference  
{Initializes player's actor values}

int function _GetScriptVersion() Global
	return 1
endFunction

;=====================================================================================
;              							EVENTS                  					 
;=====================================================================================

Event OnInit()

	PlayerREF.SetActorValue("speedMult", 95)
	PlayerREF.SetActorValue("Healrate", 0)

EndEvent

Event OnPlayerLoadGame()

	; changes to the actor value healrate will not persist in consecutive saves
	; every time a save gets loaded the healrate needs to be set to 0, otherwise it will go back again to default at 0.7
	; this is called before active magic effects of potions or spells are applied to the player which could also alter the value
	PlayerREF.SetActorValue("Healrate", 0)

	; Workaround for broken physics on loading saves, made on a mount
	If PlayerREF.IsOnMount()
		PlayerREF.Dismount()
	EndIf

EndEvent

;=====================================================================================
;              							 PROPERTIES                   					 
;=====================================================================================

Actor Property PlayerREF Auto