3631
Suggestions & Requests / Re: Save and Load maxhealth
« on: March 28, 2015, 12:45:19 PM »Well i use this mod for setting max health, so if its as easy as you say would anyone mind doing it please?I just looked at the persistence script and I'm not sure how registerpersistencevar handles players
I don't know if you'd do RegisterPersistenceVar("maxHealth", false, ""); or RegisterPersistenceVar("player.maxHealth", false, ""); or what
It was just an example.Just an fyi
If you want a health mod I've made one long ago that has this file inside. If I remember it also modifies VCE stuff.
https://www.dropbox.com/s/mnctkr1p2uc8o0z/Zzerver_NewHealth.zip?dl=1
Note that this mod is pretty old to me and it might break some stuff.
This addon is about three or so times as large as it needs to be
Player, AIPlayer, Vehicle, and WheeledVehicle all inherit from ShapeBase. So you only need to define the methods for ShapeBase. I see you did that for many methods, but you defined addhealth and sethealth (looks like exaclty the same code) individually for each class
