API Question Is the URMS attached to my vessel?

ADSWNJ

Scientist
Addon Developer
Joined
Aug 5, 2011
Messages
1,667
Reaction score
3
Points
38
Looking for a snippet of code please to see if a target vehicle is attached to an arm (e.g. URMS), which is attached to our ship.

I'm thinking it's enumerating the attachments of the target to find an arbitrary intermediate arm vessel, which is attached to our vessel, but I'd like to see this in code.

Reason: I'm writing an extension to RV Orientation to do on-station operations. I want to handle a scenario of maneuvering a base ship (e.g. XR-5), with a module on an arm, to align with a free-floating second module. I can handle all the offsets and port rotations, etc, but for now I'm just assuming the user grapples or purges as appropriate. Ideally, I'd want to drop the autopilot off as soon as the target I am proxy-maneuvering drops off the arm.
 
Top