Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

cuddleman1976

Allies
  • Posts

    1
  • Joined

  • Last visited

cuddleman1976's Achievements

Layman

Layman (1/11)

0

Reputation

  1. Let me start off by saying I really appreciate any assistance, regardless if the information works out or not. The thought is what matters. I am having an issue with a script. I have a trigger box area that turns a campfire/fireplace on when an NPC enters and off again when all of the NPC's leave. For the most part, it work perfectly for NPC's. However, If you throw the player in the mix, it can mess things up a bit. Let me explain. Lets say I am role playing and sitting on a bench next to the fire. If the fire is off and an NPC enters the trigger area, nothing happens. Same thing if say the fire is on and an NPC enters and then leaves the trigger area. Nothing if the player is within the trigger area already. However, it works great if the player is not in the picture. For this specific campfire/fireplace I have a manual on/off toggle activator the player can use. So I am only concerned with the trigger box area. I want it to only recognize an NPC and ignore the player. I will include what I have thus far, script wise. Please let me know if it can be changed to what I am looking for. Again, I really appreciate the assistance, scripting is not my language. Thank you ObjectReference Property CampfireOn Auto Event OnTriggerEnter(ObjectReference akTriggerRef) if GetTriggerObjectCount() == 1 if akTriggerRef != Game.GetPlayer() ; debug.notification("Entered Trigger") GetLinkedRef().Activate(Game.GetPlayer()) CampfireOn.Enable() endif endif EndEvent Event OnTriggerLeave(ObjectReference akTriggerRef) if GetTriggerObjectCount() == 0 if akTriggerRef != Game.GetPlayer() ; debug.notification("Leaving Trigger") GetLinkedRef().Activate(Game.GetPlayer()) CampfireOn.Disable() endif endif EndEvent
×
×
  • Create New...