Jump to content

Create a teleport companion object


EViLKeNn

Recommended Posts

Hi to all!!

 

I have create a overlord companion with RR companion structure Fawlord Overlord Companion... but sometimes when I teleport somewhere in the wasteland, my companion disappears and I cant find more it... to overcome this problem I decided to create an object that when is worn the companion automatically teleport near player... I already created a hat party (how in RR Brooke companion) for this, but I cant compete the script to insert in the object (hat party) for run the teleport.... :confused: can someone help me with this? thanks in advance... :thumbsup:

Link to comment
Share on other sites

This is what I use:

 

 
scn MyNPCLuckyShadesScript

BEGIN ONEQUIP
set MyNPCRef.iwait to 0
set MyNPCRef.iFollow to 1
MyNPCRef.moveto player 50 50 0
MyNPCRef.evp
ShowMessage MyNPCLuckyShadesDone
Player.UnequipItem MyNPCLuckyShades 0 1
Player.AddItem MyNPCLuckyShades 1 1
Player.RemoveItem MyNPCLuckyShades 1 1
END

 

MyNPCLuckyShades is a copy of an armor item with no biped slots selected and with this script attached to it.

When the object is equipped in the Pipboy, this script sets my NPC to follow if it was waiting, moves it, shows a message 'Your NPC was moved to the player'. The unequip/add/remove makes the pipboy update the fact that the item has been unequipped.

Link to comment
Share on other sites

I start my script for my teleporter object (party hat) in this mode:

 

 
scn NVFawlordTeleportingHatSCRIPT

begin OnEquip

FawlordRef.moveto player
end

 

but its not correct... because I dont know exactly what is my companion Ref... where can I find it?

Link to comment
Share on other sites

I start my script for my teleporter object (party hat) in this mode:

 

 
scn NVFawlordTeleportingHatSCRIPT

begin OnEquip

FawlordRef.moveto player
end

 

but its not correct... because I dont know exactly what is my companion Ref... where can I find it?

 

In the cell view window, go to the cell that you placed your NPC in. Highlight the NPC, right-click, then 'edit'. The top space is where you give it a RefID. It's blank by default. If you want to do things to objects with scripts, the object needs a RefID. So just type FawlordRef in the space and save it.

Your script will work fine with the hat object. All the other stuff I have in my script is just fluff ;)

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

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