Hi all,
I've got this very illogical problem with health.lua, I hope you geniuses can solve this for a newby.
When I attach the health.lua to an object, it sometimes decreases health in stead of increasing (or maintaining when 100).
1. How is that even possible? (I want to learn about lua technics)
2. How can I prevent this? (I'd like to be able to choose my own health objects)
What I've already found out:
-I'm 100% sure no second faulty health.lua accidentally ended up somewhere in the scriptbank. (I changed the name to test it and the default health objects temporarily didn't work because they couldn't find the health.lua)
-So far it depends on which object I choose, so when it works one time with said object, it will keep working with it.
-I've compared compared all the property settings from working and non-working objects, but copying them doesn't change it.
-I bought a 'press -e to collect health' script which has the same problem
Anyone have any clue to why this script behaves 'randomly'?
Thanks in advance for your time & effort!