Jump to content

Help Scripting For New Vegas?


vaanknight

Recommended Posts

Hi all. I've been modding for a while now, but I've barely touched scripting until now.


I'm making a requested mod in New Vegas that needs a custom hologram. I've made the model and it looks and works fine in the GECK. What I want is to be able to summon this hologram upon equipping a ring (armor piece already modeled and added), and dismiss it when the ring is unequipped, giving the illusion of an emitter.


This is what my script is for. I saved an empty version of it first so I could assign it to the ring (and the hologram, if you guys tell me I need to) and now I want to add the actual function. This is what I wrote:




ScriptName 00VKholosummon

Begin OnEquip PlayerRef

00VKAliciaHoloRef.enable
00VKAliciaHoloRef.moveto playerRef
00VKAliciaHoloRef.AddToFaction FollowerFaction 1
00VKAliciaHoloRef.SetPlayerTeammate 1
00VKAliciaHoloRef.SetFactionRank TeammateFaction 1
00VKAliciaHoloRef.SetIgnoreFriendlyHits 1

End

Begin OnUnequip PlayerRef

00VKAliciaHoloRef.disable

End


It won't even save, so clearly I'm doing something wrong.


I added the hologram to the unplayed TestTrap cell so there's a reference, which I named 00VKAliciaHoloRef, as written above. Is this correct then? Do I even have to? Should it be simply 00VKAliciaHolo?


While I more or less understand a script well enough to edit it (I have with other mods) I know next to nothing about producing a brand new one.


Any advice you can offer would be GREATLY appreciated, my dudes.

Link to comment
Share on other sites

None, it just won't save or compile at all. I'm loading the Extended GECK with NVSE, btw.

 

Oh wait, yes it does say:

SCRIPTS: Script '00VKholosummon', line 4:
Script command "00VKAliciaHoloRef.enable" not found.

And I just noticed this in the log, I'm guessing I need to do something to correct this?

The script function list doesn't have all the names filled in.
Edited by vaanknight
Link to comment
Share on other sites

  • Recently Browsing   0 members

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