Scriptname VampireCelerityScript extends activemagiceffect Actor Property Player AutoFunction SetMotionType(int aiMotionType, bool abAllowActivate = true) native Event OnEffectStart(Actor Target, Actor Caster) Player = Game.GetPlayer() Player.SetMotionType(Player.Motion_Dynamic) If (Target == Game.GetPlayer()) Player.TranslateTo(100.0, 100.0, 100.0, 90.0, 90.0, 90.0, 500.0, 75.0) EndIf EndEventEndFunction
I get a compile error for line 13 (which is the last line) saying there is no EOF at 'EndFunction'
I had the impression EndFunction was the End Of Function. What am I missing here?
The script itself is bologna for learning. It actually worked to some extent. When I fired the spell my character do move, however he never stopped moving when the spell ended. That will be next hurdle. Right now I need help for why the script wont compile.
Thanks.
