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.
[CODE]@name
@inputs
@outputs
@persist Array:array String:string
@trigger
Array = entity():isWeldedTo():getConstraints()
String=Array[20,string]
print(String," ")
[/CODE]
Because getConstraints doesn't return an array of strings, it returns an array of entities.
[code]
Array = entity():getConstraints()
Key = Array[1, entity]
Table = table(
"Name: " + Key:name(),
"Owner: " + Key:owner():name(),
"Model: " + Key:model()
)
printTable(Table)
[/code]
wiremod.com
[QUOTE=unrezt;36264632]Because getConstraints doesn't return an array of strings, it returns an array of entities.
[code]
Array = entity():getConstraints()
Key = Array[1, entity]
Table = table(
"Name: " + Key:name(),
"Owner: " + Key:owner():name(),
"Model: " + Key:model()
)
printTable(Table)
[/code][/QUOTE]
Thank you so much!
Sorry, you need to Log In to post a reply to this thread.