Jump to content

Recommended Posts

I'm working in a character and the question is..

I Launch a Life Regeneration in the char when arrives the Night:

inst.components.health:StartRegen(3, 1)

This works fine.

Buy I want to stop this regeneration when arrives the day:

inst.components.health:StopRegen()

This not works.. and when Night Arrives Again the regeneration is stopped.

Ideas?

Thanks.

I would guess the problem lies with when/how you are calling these methods. Especially given that regeneration stops on the next night. Could you post the code controlling when you call those methods?

Edited by Farxodor

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...