Jump to content

how to check Is In Caves


Recommended Posts

What is the preferred method to figure out if a character is in the caves?

 

Edit: Found it in sanity

TheWorld:HasTag("cave")

I have a character who reacts to day, dusk, and night.  But caves are always considered nighttime.

 

Are there any global states in the caves that I can utilize?

 

Is there a tag for cave quakes?  nightmare state?  etc?

Edited by Zackreaver
Link to comment
Share on other sites

@Zackreaver, it's all mixed with the world stuff.

 

I have a character who reacts to day, dusk, and night. But caves are always considered nighttime.

 

Look at bunnymen. There's a caveday, cavedusk, and cavenight.

 

 

 

Is there a tag for cave quakes?

 

No, but "startquake", "warnquake", "endquake" get pushed to TheWorld on each quake stage.

 

 

 

nightmare state?
local function onNightmareChange(inst, phase)	if phase == "nightmarecalm" then	elseif phase == "nightmarewarn" then	elseif phase == "nightmarewild" then	elseif phase == "nightmaredawn" then	endendinst:WatchWorldState("nightmarephase", onNightmareChange)
Edited by DarkXero
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
 Share

×
  • Create New...