PDA

View Full Version : Is there a way



Stag
Sep 8 2003, 20:01
To check the cargo status of a vehicle; eg; if it's still got passengers?

Thanks in advance.

Canukausiuka
Sep 8 2003, 21:41
sure. the men in cargo can be put in an array like this:
menInCargo = crew Transport - [driver Transport, gunner Transport, commander Transport];
or something like that. Bascially you just take an array of the crew of the vehicle, and remove the driver, gunner, and commander, if there are any.

Stag
Sep 8 2003, 22:32
Thanks mate, but I'm looking for something broader.

The final mission may have a cast of thousands (ok, dozens).

Stage 1 would be is the vehicle empty?

Stage 2 would be: Can I make a second and subsequent group jump through hoops before boarding the transport?

Canukausiuka
Sep 8 2003, 23:54
Well "count crew Transport == 0" would tell you if it is entirely empty, and you could probably write a function to tell you only about cargo.

I'm not sure what you mean by "jump through the hoops before boarding the transport" though. http://forums.bistudio.com/oldsmileys/crazy_o.gif

bn880
Sep 8 2003, 23:57
Stage 1,
count (crew vehicle) > 0

will be true if full, false if empty.

Stage 2, well, I don't know.

(took to long to write... again)

Stag
Sep 9 2003, 08:05
Well "count crew Transport == 0" would tell you if it is entirely empty, and you could probably write a function to tell you only about cargo.

I'm not sure what you mean by "jump through the hoops before boarding the transport" though.   http://forums.bistudio.com/oldsmileys/crazy_o.gif
Thanks http://forums.bistudio.com/oldsmileys/smile_o.gif

I think that's one that I can get to work.

"jump through hoops": Perform "certain actions"

http://forums.bistudio.com/oldsmileys/wink_o.gif