@DragonSK14:
DragonSK14 wrote:
Quote: "is there a way to change MaxHealth dynamically through lua instead of statically. I've used SetPlayerHealth which does nothing towards MaxHealth"
Hi,
The easiest way to get what you want, is to use collectible objects or entities, such as MedBox or Medical Cross (see it in cartoon assets), which you may spread out them within your game level.
The hard way is writing a Lua script file. Below, you have a link to download a Lua script I wrote, called 'myhealingzone.lua', which, perhaps, it might help you. It has worked fine with the latest release of the GG (1.01.0034); that I have installed on my PC system.
https://www.dropbox.com/s/u9b9zv9ainstmgh/myhealingzone.lua?dl=0
I have set the max health value to 1000 units; however, if you prefer greater or lesser values, just adjust it, as needed, in the line
'SetPlayerHealth(1000);'
Please note,
the 'myhealingzone.lua' file should be used with a trigger zone , within your game scenario.
Have fun!
Northern