Jetpacksquirrel Posted November 14, 2017 Share Posted November 14, 2017 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! Link to comment https://forums.kleientertainment.com/forums/topic/84190-coding-help-more-damage-to-sleeping-enemies/ Share on other sites More sharing options...
spideswine Posted November 14, 2017 Share Posted November 14, 2017 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. Link to comment https://forums.kleientertainment.com/forums/topic/84190-coding-help-more-damage-to-sleeping-enemies/#findComment-974390 Share on other sites More sharing options...
Jetpacksquirrel Posted November 15, 2017 Author Share Posted November 15, 2017 Thanks man! I'll try that out! Link to comment https://forums.kleientertainment.com/forums/topic/84190-coding-help-more-damage-to-sleeping-enemies/#findComment-974671 Share on other sites More sharing options...
Jetpacksquirrel Posted November 15, 2017 Author Share Posted November 15, 2017 Just as an update, the tag worked! Thanks so much! Link to comment https://forums.kleientertainment.com/forums/topic/84190-coding-help-more-damage-to-sleeping-enemies/#findComment-974686 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now