Jump to content

(flight) finding if <part> isTestSubject


Recommended Posts

so basicly, ModuleTestSubject is put on parts, to work with contracts to give part test contracts

MTS has 2 fields, isTestSubject and isExperimentalPart
supposedly isTS is for when a contract wants the part tested
and isEP is if the tech node for it is still locked
these are the 2 fields i need (rather their function) during flight scene

part.modules instance of MTS showed both values always false
part.partinfo.prefab.modules instance of MTS also says both false
ResearchAndDevelopment.GetTechState(part.partinfo.TechRequired) is always == available
(tested on hammer and flea SRBs, only start node researched, test contracts for both)

where else to look?

to clarify, my mod (a partmodule) needs to basicly do

OnStart() {
if (part.isTestSubjectForContract)
{
dostuff()
}

Link to comment
Share on other sites

wow.....ok houirs wasted, thats dumb, and half solved, looks like 5 frame delay and i waited 6, 20 no dif

isTS = true, isEP = false, in both parts
(flea in start node researched, hammer in BasicRocketry not, contract for both)
eh close enough i guess ty :D

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...