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.

@persist Array:array String:string

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


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()

Thank you so much!