Jump to content

Simple Summon Spell Script


Yorkie77

Recommended Posts

Hi!

 

I'm trying to create a mod that summons special npc's to the player, but am having trouble scripting the spell that moves the npc to the player.

 

I found this shred of script on this forum, but it's a no go :C

 


scriptname NAME extends activemagiceffect

ACTOR PROPERTY NPC AUTO
ACTOR PROPERTY PlayerRef AUTO

EVENT OnEffectStart(Actor akTarget, Actor akCaster)
IF (PlayerRef.GetDistance(JZhargo) < 10000)
NPC.MoveTo(PlayerRef, 120.0 * Math.Sin(PlayerRef.GetAngleZ()), 120.0 * Math.Cos(PlayerRef.GetAngleZ()), PlayerRef.GetHeight())
ENDIF
ENDEVENT

 

 

As always, any points are greatly appreciated =3

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...