Scn LevitationTestScript


float LevitationSpeed
float pcZheight
ref myWalk



begin ScriptEffectStart

	Set LevitationSpeed to 200   ; Speed in Game units/second ... 
	set myWalk to LevitationTestActivatorRef  ;Platform to prevent fall
	myWalk.Enable
	resetfalldamagetimer

end


begin ScriptEffectUpdate


Set pcZheight to GetPos z
mywalk.Setpos z pcZheight


If (IsKeyPressed3 38)
	player.SetVerticalVelocity LevitationSpeed
EndIF




end


begin ScriptEffectFinish

resetfalldamagetimer

end
