Jump to content

user826

Premium Member
  • Posts

    152
  • Joined

  • Last visited

Everything posted by user826

  1. 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
  2. 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?
  3. 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...