Jump to content

Summoning/Teleporting Follower


tonewheelz

Recommended Posts

Hi all,

 

I was hoping someone could help me get this script working the way I want it to. I am trying to use a summon spell to teleport a follower to my location. Currently, it spawns a duplicate of my follower. I want to teleport the main NPC. Here is the script I am using:

 

Scriptname SummonFang extends ActiveMagicEffect  

ACTORBASE PROPERTY FangType AUTO

OBJECTREFERENCE Fang



EVENT onEffectStart(ACTOR akTarget, ACTOR akCaster)

Fang = game.getPlayer().placeAtMe(FangType)

endEVENT


EVENT onEffectFinish(ACTOR akTarget, ACTOR akCaster)

Fang.disableNoWait()


endEVENT

Edited by drrusa
Link to comment
Share on other sites

There are a couple of problems here.

 

The main one is that you're declaring an actorbase (ie. actor base object) as the property that's being summoned, rather than a specific actor. This is why you're getting a duplicate. Simply replace "actorbase" with "actor" in line 3 and reset the property's reference and you should be fine.

 

The other issue is that you're using placeatme() instead of moveto(), which is used for creating additional references of a base object, not moving an existing one.

 

You can always download and rip the script I use in Call Housecarls, or use it as a reference.

Edited by JanusForbeare
Link to comment
Share on other sites

There are a couple of problems here.

 

The main one is that you're declaring an actorbase (ie. actor base object) as the property that's being summoned, rather than a specific actor. This is why you're getting a duplicate. Simply replace "actorbase" with "actor" in line 3 and reset the property's reference and you should be fine.

 

The other issue is that you're using placeatme() instead of moveto(), which is used for creating additional references of a base object, not moving an existing one.

 

You can always download and rip the script I use in Call Housecarls, or use it as a reference.

 

 

Thank you so much for the guidance. I downloaded the Call Housecarls mod, but I am unable to view the script because I don't have the source. Is there another way to view the script in creation kit??

Link to comment
Share on other sites

  • Recently Browsing   0 members

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