Jump to content

Seat filled tracking ?


Mapoko

Recommended Posts

Hello

First sorry if this is the wrong section.

I am trying to work on my first mod and I am just taking baby steps.

I am now trying to write a part, where it will have different outputs depending on seats filled.

So something like :

If [seat n filled] and [kerbal = scientist] then [output = output_S*kerbal level] else output = 0

If [seat n filled] and [kerbal = engineer] then [output = output_E*kerbal level] else output = 0

If [seat n filled] and [kerbal = pilot] then [output = 0]

If [seat n filled] and [kerbal = tourist] then [output = 0]

So basically if I have part with 4 seats, then to check how many seats are filled (and with what), then produce output based on the number of kerbals inside.

So, having the module 1/2 filled with kerbals, then the output is roughly 50% of max.

I have no clue how to work out the check if the seat is taken or at least to keep track how full the module is.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...