![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#11 |
Black Magic
![]() |
![]()
was going to just arbitrarily pick a number out of thin air for the max damage that the commander can sustain before all tactics and roles get reset but then I remembered this crew state:
### ======= Ship state-machine: ABANDON ======= ### strategy StateAbandon(Ship) { precond { Ship:GetDamage() >= MAX_DAMAGE_STATE_CHANGE } there's the magic number: MAX_DAMAGE_STATE_CHANGE (which is 0.9) So there is what determines when the commander isn't a commander anymore ![]() EDIT: the work around I did didn't work correctly.....but I did manage to find another one that so far has been working perfectly! EDIT2: after multiple tests it's been discovered that any work around doesn't work all the time ![]() ![]() ![]() Last edited by TheDarkWraith; 08-24-10 at 01:01 AM. |
![]() |
![]() |
|
|