Jump to content

user826

Premium Member
  • Posts

    154
  • Joined

  • Last visited

Everything posted by user826

  1. So I managed to create my own custom radio station and I can hear the music when I select the station on the PipBoy, but if I make a custom vintage radio or jukebox and select my custom station from the drop-down menu, it doesn't work - I only get silence. There's a tutorial thread over on the New Vegas forum that says jukeboxes need to use an OGG file with "_mono" tacked on to the end of the file name but that doesn't work for me. Anyone have any ideas?
  2. Heh, you can probably tell I'm not much of a scripter and that I mostly just copy/paste from pre-existing code. Most of the stuff you pointed out is just me imitating what worked in other scripts I found. As for the "Activate", I'd replace that with the exploding code, once I've found/written it.
  3. Okay, awesome! So, the script would look something like this, then? begin OnActivate if (GetActionRef != Player) set bOccupied to bOccupied + 1 Return elseif (bOccupied > 1) activate endif end
  4. That's one way, but if I want the chair to use the Pants Exploded method and deposit a live grenade into the inventory of the NPC, is there a way to do so, like: begin OnActivate if [**AnyNPC**].IsCurrentFurnitureRef TotallyNormalChairREF == 1 ;Add a live grenade to [**AnyNPC**]'s inventory endif endOr, if I want to attach the script on a couch, and only run it if two or more NPCs are sitting on the couch?
  5. Hey, all. I tried Googling this first but I couldn't find anything (maybe I'm just not using the right keywords) so I'm hoping someone here can help me. Anyway, is there a function that can detect if any NPC is using an object? For instance, is there some way for a chair to detect if anyone is sitting on it, not just a single actor ID reference? I know of the IsCurrentFurnitureRef and IsCurrentFurnitureObj functions, but these only detect a single actor. How can I, for example, make a booby-trapped chair that explodes as soon as anyone sits in it? Thanks for any help you can give me!
×
×
  • Create New...