vaanknight Posted August 23, 2022 Share Posted August 23, 2022 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 More sharing options...
HeyYou Posted August 23, 2022 Share Posted August 23, 2022 What error are you getting when you try and compile the script? Link to comment Share on other sites More sharing options...
vaanknight Posted August 23, 2022 Author Share Posted August 23, 2022 (edited) 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 August 23, 2022 by vaanknight Link to comment Share on other sites More sharing options...
madmongo Posted August 24, 2022 Share Posted August 24, 2022 Don't start reference IDs with a number. It works for some things and fails miserably for other things. Link to comment Share on other sites More sharing options...
vaanknight Posted August 24, 2022 Author Share Posted August 24, 2022 Don't start reference IDs with a number. It works for some things and fails miserably for other things. That did it... Wow, something so simple. Gamebryo truly is the gift that keeps on giving. Thank you very much man. Link to comment Share on other sites More sharing options...
Recommended Posts