toutenglisse Posted May 17, 2021 Posted May 17, 2021 (edited) Leads to unit to start with 133.3...% of life. I'm not sure if it's a bug or if there is a purpose in this fact, but it differs from description of the function. EDIT : it is not systematically 75%, for some units (ex : SR P-19 : 50%) it's lower, leading to 200% of life points at spawn. (% of life can't be reliable) getLife0-bug.trk Edited May 17, 2021 by toutenglisse in post
Grimes Posted May 20, 2021 Posted May 20, 2021 (edited) Yeah its off by 1. So the percentage changes with the unit type. EDIT; Turns out its an issue with getLife, not getLife(). getLife0 and getDesc().life are the same value and is the correct value stored in the hidden database files. Edited May 20, 2021 by Grimes New information has come to light man 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
TOViper Posted July 13, 2022 Posted July 13, 2022 Doesn't seem to be off by 1 anymore. Currently using OB 2.7.15.26783. Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G 4.4 GHz | NVIDIA RTX 3080 10GB | 32 GB 3.2 GHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TRP | Rift CV1
Grimes Posted July 14, 2022 Posted July 14, 2022 It was fixed in 2.7.4.9847 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts