Jump to content

Recommended Posts

As the title says, I need some help figuring out how to make my character mod deal more damage to sleeping enemies.
I'm and artist and have little experience in coding. I have been reading as many tutorials as possible to help me through. So far everything is working just fine. I just can't seem to figure this one out by myself. 
Any and all help is welcome, even if it's just a push in the right direction!

Sleeping things have a tag which is added when they are asleep(the tag is "sleeping"), there is also inst.components.sleeper:IsAsleep().

Just remember that its possible that not all things have a sleeper component, I'd suggest trying first with the tag and if that doesn't work use the component check.

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
×
  • Create New...