Moving player to a spells impact location

Post » Mon Jun 18, 2012 7:01 am

Sooo I've downloaded the Creation Kit just recently, and through experimentation I've managed to add in a new spell, magic effect, and spell tome. I managed to get the player access to the spell via the spell tome that I placed in game somewhere. (in a test location for now)

Im actually trying to script that will teleport the player to the spells impact location, but none of the events I've put into my script seem to ever fire.
This is what I have in my script so far:

Scriptname ConjureSelfScript extends activemagiceffect{Used in the ConjureSelf Spell Mod}Function MoveTo(ObjectReference akTarget, float afXOffset = 0.0,  float afYOffset = 0.0, float afZOffset = 0.0, bool abMatchRotation = true) nativeEvent OnEffectStart(Actor akTarget, Actor akCaster)  Game().GetPlayer().MoveTo(akTarget)endEvent

Not much, I know. But like I said I cant even get the OnEffectStart event to fire. Is there another event that I might need to use?
Also, the 'explosion' property in my magic effect doesnt seem to do anything at all when it hits a target.
And.... finally, the Hit Effect Art only seems to show when it hits an actor, not a location like the ground or a surface.

Heres the output of my compile:
Starting 1 compile threads for 1 files...Compiling "ConjureSelfScript"...c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\ConjureSelfScript.psc(4,64): no viable alternative at input '\\r\\n'c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\ConjureSelfScript.psc(0,0): error while attempting to read script ConjureSelfScript: Object reference not set to an instance of an object.No output generated for ConjureSelfScript, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on ConjureSelfScript
User avatar
Kayla Keizer
 
Posts: 3357
Joined: Tue Dec 12, 2006 4:31 pm

Return to V - Skyrim