Hi, I'm new to scripting and have been trying to work this out for hours, but seems no matter what combinations I use, I can't get this script to compile. I'm trying to enable then teleport a custom character to the player after they sleep, but I keep getting errors with the MoveTo function. Any help would be greatly appreciated. My script is currently:
Scriptname Sin06PlayerScript extends ReferenceAlias
event OnSleepStart(float atSleepStartTime, float atDesiredSleepEndTime)
Sin.getRef().Enable()
Sin.MoveTo(Game.Getplayer()( 200, 0, 0)
UnregisterForSleep()
endevent
I have an alias set up for Sin and the player, but still receive these error messages:
Starting 1 compile threads for 1 files...
Compiling "Sin06PlayerScript"...
X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,28): mismatched input '(' expecting RPAREN
X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,32): required (...)+ loop did not match anything at input ','
X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,35): required (...)+ loop did not match anything at input ','
X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,38): required (...)+ loop did not match anything at input ')'
No output generated for Sin06PlayerScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on Sin06PlayerScript
I'm guessing perhaps commas and/or brackets are in the wrong place?