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.