28.09.2009, 07:03:19
The tracking issue for this feature is number 632.
I have added code that should do what I described, but D will have to look it over, and since I can't test it on here, there's no guarantee it'll run, or even compile yet.
It'll take the simple form of Survivor.Pilots=# where # is the number of pilots to account for.
If the object is set to Crewed=no, Survivor.Pilots will default to 0.
If the object is set to Crewed=yes, Survivor.Pilots will default to 1.
Note that the entire routine won't fire if Crewed=no is set, so there's no point in
constructs.
As settled, there are no additional restrictions on usage; the number is saved in an int, so you should, technically, be able to have it calculate billions of survivors.
Note that this tells the computer only that there were # pilots in the vehicle; that does not mean all of them survive. It's a maximum, not a guarantee.
Remember, though, that with great power comes great responsibility, and that running a loop a billion times will cost time
Use it wisely and watch your balance. In particular in terms of cost.
I have added code that should do what I described, but D will have to look it over, and since I can't test it on here, there's no guarantee it'll run, or even compile yet.
It'll take the simple form of Survivor.Pilots=# where # is the number of pilots to account for.
If the object is set to Crewed=no, Survivor.Pilots will default to 0.
If the object is set to Crewed=yes, Survivor.Pilots will default to 1.
Note that the entire routine won't fire if Crewed=no is set, so there's no point in
Code:
Crewed=no
Survivor.Pilots=10
As settled, there are no additional restrictions on usage; the number is saved in an int, so you should, technically, be able to have it calculate billions of survivors.
Note that this tells the computer only that there were # pilots in the vehicle; that does not mean all of them survive. It's a maximum, not a guarantee.
Remember, though, that with great power comes great responsibility, and that running a loop a billion times will cost time
Use it wisely and watch your balance. In particular in terms of cost.
Forum Rules
(01.06.2011, 05:43:25)kenosis Wrote: Oh damn don't be disgraced again!
(25.06.2011, 20:42:59)Nighthawk Wrote: The proverbial bearded omni-bug may be dead, but the containment campaign is still being waged in the desert.