MoveTo player Script

Post » Fri Jun 28, 2013 4:37 pm

So I've run into another problem. I'm trying to make a script on a spell that moves an actor over to the player to simulate a summoning spell, though I can't use an actual summoning as that blocks dialogue with the summoned actor for some reason (Unless there's a way around that. I've tried DefaultPCallowDialogueScript but to no avail). Also, I need to use MoveTo as opposed to PlaceAtMe since this is a unique actor.

Here's the coding I've got on the spell. I used the creation kit wiki page on MoveTo as a template, but it doesn't seem to work.

Scriptname MANNimarcoAspectMoveToPlayerScript extends activemagiceffect ObjectReference Property MANNimarcoAspect Auto Event OnCast      MANNimarcoAspect.MoveTo PlayerEndEvent

(Yes, I'm bringing Mannimarco back from Oblivion :P)

The problem is that it tells me "Object reference not set to an instance of an object"

Even though MANNimarcoAspect already points to an existing actor.

What do?

User avatar
Darlene DIllow
 
Posts: 3403
Joined: Fri Oct 26, 2007 5:34 am

Post » Fri Jun 28, 2013 1:56 pm

You should be getting more errors than that, considering there are syntax errors in the snippet you posted. Could you post the exact source you're trying to compile?

I'd guess that the problem is probably that "Player" doesn't point anywhere. You should make an Actor property to point to the player and refer to that. I'd recommend naming it "PlayerRef" to take advantage of the Creation Kit's "Autofill Properties" feature.

Also, there is no such event as "OnCast" on the ActiveMagicEffect type. Here's a list of native events in that script - http://www.creationkit.com/ActiveMagicEffect_Script#Events

Cipscis
User avatar
stephanie eastwood
 
Posts: 3526
Joined: Thu Jun 08, 2006 1:25 pm


Return to V - Skyrim