Figured it out, with the help of F4SE team and kinggath (thank you!) For future reference: - the endpoint objects .nifs need to have connector points (check out the generator nif for reference, just copy the connector point branch to your nif) - the endpoint objects need to be linked with a workshop reference - I have used the Sanctuary workshop bench reference For example, this code spawns two objects (which have been added connector points in their nif) and spawns a rope between them
ObjectReference SplineStartRef = caster.placeatme(furniturestage3, 1)
SplineStartRef.addkeyword(workshopkwd)
SplineStartRef.SetLinkedRef(workshopref, workshopkwd)
ObjectReference SplineEndRef = caster.placeatme(furniturestage3, 1)
SplineEndRef.setposition(SplineEndRef.getpositionx(), SplineEndRef.getpositiony(), SplineEndRef.getpositionz()+100)
SplineEndRef.addkeyword(workshopkwd)
SplineEndRef.SetLinkedRef(workshopref, workshopkwd)
utility.wait(1)
ObjectReference wireRef = SplineStartRef.createwire(SplineEndRef, Game.GetForm(0x00021F34))Problem is that the rope is static, it does not adjust if I move the endpoints after spawning. So, kinda fail, overall :(