Jump to content

Recommended Posts

Posted (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 by toutenglisse
in post
Posted (edited)

Yeah its off by 1. So the percentage changes with the unit type. 

 

Screen_210520_155551.jpg

 

 

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 by Grimes
New information has come to light man
  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • 1 year later...
Posted

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

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...