Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Discuss: Survivor.Count
#10
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
Code:
Crewed=no
Survivor.Pilots=10
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 Wink
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.
Reply


Messages In This Thread
Discuss: Survivor.Count - by Renegade - 26.09.2009, 22:52:24
RE: Discuss: Survivor.Count - by MRMIdAS - 26.09.2009, 23:35:08
RE: Discuss: Survivor.Count - by Renegade - 27.09.2009, 00:15:34
RE: Discuss: Survivor.Count - by Lt Albrecht - 27.09.2009, 00:51:04
RE: Discuss: Survivor.Count - by MRMIdAS - 27.09.2009, 05:25:42
RE: Discuss: Survivor.Count - by Modder666 - 28.09.2009, 03:06:49
RE: Discuss: Survivor.Count - by mt. - 28.09.2009, 04:53:42
RE: Discuss: Survivor.Count - by Renegade - 28.09.2009, 05:22:53
RE: Discuss: Survivor.Count - by mt. - 28.09.2009, 06:11:30
RE: Discuss: Survivor.Count - by Renegade - 28.09.2009, 07:03:19
RE: Discuss: Survivor.Count - by Renegade - 28.09.2009, 21:47:26
RE: Discuss: Survivor.Count - by eva-251 - 29.09.2009, 02:10:58
RE: Discuss: Survivor.Count - by Renegade - 29.09.2009, 02:34:08
RE: Discuss: Survivor.Count - by Tempest - 02.10.2009, 11:57:40
RE: Discuss: Survivor.Count - by Renegade - 03.10.2009, 05:08:29



Users browsing this thread: 1 Guest(s)