Jump to content

Photo

Help Scripting For New Vegas?

new vegas script summon hologram dead money

  • Please log in to reply
4 replies to this topic

#1
vaanknight

vaanknight

    Old hand

  • Members
  • PipPipPip
  • 551 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.


#2
HeyYou

HeyYou

    Resident poster

  • Supporter
  • PipPipPipPipPip
  • 12,673 posts

What error are you getting when you try and compile the script?



#3
vaanknight

vaanknight

    Old hand

  • Members
  • PipPipPip
  • 551 posts

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, 23 August 2022 - 07:29 pm.


#4
madmongo

madmongo

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,400 posts

Don't start reference IDs with a number. It works for some things and fails miserably for other things.



#5
vaanknight

vaanknight

    Old hand

  • Members
  • PipPipPip
  • 551 posts

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.







Also tagged with one or more of these keywords: new vegas, script, summon, hologram, dead money

IPB skins by Skinbox
Page loaded in: 0.909 seconds