E2 Question About getConstraints()

This is stupid, but I can’t for the life of me figure out why this won’t work. I just want to print the string of the prop to the chat box.

This should say that the props connected to the e2 are in the array, and then I can use String to select a specific part of the array, and display it in the chat. Obviously my actual project entails much more, but I have been trying to figure out why this small thing wont work.


@name 
@inputs 
@outputs 
@persist Array:array String:string
@trigger 


Array = entity():isWeldedTo():getConstraints()




String=Array[20,string]




print(String," ")




Because getConstraints doesn’t return an array of strings, it returns an array of entities.



Array = entity():getConstraints()

Key = Array[1, entity]

Table = table(
    "Name: " + Key:name(),
    "Owner: " + Key:owner():name(),
    "Model: " + Key:model()
)
    
printTable(Table)


Thank you so much!