Jump to content

Help making an ACTUAL campfire


GasMaskGhoul

Recommended Posts

 

Automatic item activation/deactivation help

 

So ive been trying to look for tutorials and hoy to script and then searched for papirus tutorials to no avail. Ive basicaly been looking to make a bonfire get lit at night and turn off by day. I tried so hard and got so far but in the end in doesnt even work.

These ore the only 2 ways i could think that would be posible:

(Ps: If its do able id prefer the 2nd)

 

First way

Active unlit bonfire and deactivate lit bonfire when Xnpc goes to work when he enters trigger area. Active lit bonfire and deactivate unlit bonfire when said npc leaves trigger area.

 

Second way

Deactivate lit bonfire and active unlit bonfire at night 7am-6pm. Deactivate unlit bonfire and activate lit bonfire at 6pm-7am. (Activation by time)

 

I dont know how to script well so it would help if you could paste IT or give me a very close example.

Link to comment
Share on other sites

Well there a couple of ways I can think of, 1st would be an OnUpdate() event that fires every twelve hours or so and flips a script through one of two states, one an "on" state that disables the "fire out" campfire and enables a "fire lit" campfire, the other doing the opposite.

 

A more elegant solution would be an AI package thats attached to an NPC that makes them head to a marker next to the campfire surrounded by a trigger box that once the NPC enters it either enables/disables the lit/unlit campfire depending on time of day.

Link to comment
Share on other sites

Why are you posting your question here? This is the forum that lets new people introduce themselves and say, "Hi". Your question would be best asked in the forum of the game that you are actually playing. As you did not say what game that was, and the Nexus hosts over 250 different titles, I cannot redirect you.

 

 

The Rabbit

Link to comment
Share on other sites

Why are you posting your question here? This is the forum that lets new people introduce themselves and say, "Hi". Your question would be best asked in the forum of the game that you are actually playing. As you did not say what game that was, and the Nexus hosts over 250 different titles, I cannot redirect you.

ÃÂ

ÃÂ

The Rabbit

Sorry when i think of Nexus I just think of skyrim, buth thanx for pointiong that out. Edited by GasMaskGhoul
Link to comment
Share on other sites

Well there a couple of ways I can think of, 1st would be an OnUpdate() event that fires every twelve hours or so and flips a script through one of two states, one an "on" state that disables the "fire out" campfire and enables a "fire lit" campfire, the other doing the opposite.

Â

A more elegant solution would be an AI package thats attached to an NPC that makes them head to a marker next to the campfire surrounded by a trigger box that once the NPC enters it either enables/disables the lit/unlit campfire depending on time of day.

Thanks for the answer! I will try this out and tell you at somepoint if it works!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...