nolanri Posted June 9, 2016 Share Posted June 9, 2016 To emulate Protecting the character from harm, I want to make a copy of the characters current bodydamage so I can keep checking to see if the players real bodydamage has changed since the time i copied it, and if it did change then to replace it with the dummy one I copied. Im not sure how or if I can do this as im not so familliar with this lua language. Mostly everything seems to be pointers so I tried to create a new BodyDamage using the constructer but it requires a charcater to make, and when I try to construct a new character I get errors. Ya I could just spam the bodydamage:FullyHealed() method but that would mean any damage the character has before he gained "the protection" would be magically healed. any suggestions? Link to comment 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