beo6 Posted August 18 Share Posted August 18 I am trying to get all Entities children that start with a name: function MyComponent:Start() local targets = self.entity:FindChild("p*") end This does not work. targets will always be "nil". and as in the documentation function MyComponent:Start() local results local targets = self.entity:FindChild("p*", results) end does not work because there is no function with that amount of arguments. What works is using the full name without any placeholders: function MyComponent:Start() local targets = self.entity:FindChild("p1") end Quote Link to comment Share on other sites More sharing options...
Dreikblack Posted August 18 Share Posted August 18 You can get all kids like that as workaround for now self.entity.kids Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted October 28 Solution Share Posted October 28 For some reason the wildcard matching was disabled. I fixed this. The command for finding multiple entities is FindChildren. I am updating the documentation now. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.