Yorkie77 Posted May 6, 2013 Share Posted May 6, 2013 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 activemagiceffectACTOR PROPERTY NPC AUTOACTOR PROPERTY PlayerRef AUTOEVENT 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())ENDIFENDEVENT As always, any points are greatly appreciated =3 Link to comment Share on other sites More sharing options...
GrimyBunyip Posted May 6, 2013 Share Posted May 6, 2013 replace both instances of NPC with Jzhargo and make sure to fill in the properties. Link to comment Share on other sites More sharing options...
Yorkie77 Posted May 6, 2013 Author Share Posted May 6, 2013 I guess that's what I get for snatchin code :3 Link to comment Share on other sites More sharing options...
Recommended Posts