Malcolt3Join Date: 2009-12-17 Post Count: 11442 |
Please. |
|
|
Could you detail, because I am rubbish at scripting and probably will never get to trying it. |
|
getkoedJoin Date: 2010-02-18 Post Count: 2298 |
Does it return everything inside something, even if it's in another model or script or whatever in that thing? Support. :3 Could be easy for searching st00f in models |
|
NathanLuaJoin Date: 2013-10-24 Post Count: 3116 |
Sounds useful, but you could just make easy alternatives. Such as below:
function GetDescendants(obj)
local descendants = {}
function a(b)
for _, v in pairs(b:GetChildren()) do
table.insert(descendants, v)
a(v)
end
end
a(obj)
return descendants
end |
|
getkoedJoin Date: 2010-02-18 Post Count: 2298 |
True, but isn't obj:GetDescendants() faster? :3 |
|
NathanLuaJoin Date: 2013-10-24 Post Count: 3116 |
Yeah, but I just suggested that as a good way to cope with the absense of a useful method like that. |
|
getkoedJoin Date: 2010-02-18 Post Count: 2298 |
I know :d, I just like the idea :3 |
|
BerganJoin Date: 2007-11-23 Post Count: 4942 |
I have a feeling that this would require changing Lua itself. |
|
|
Malcolt3Join Date: 2009-12-17 Post Count: 11442 |
GetDescendants gets all descendants.
Obvious method is obvious.
Good day. |
|
|
Wouldn't GetChildren do the same thing?
Or are you trying to go farther than one child down?
insert egg pun siggy here adaldjadfasdfas |
|
Malcolt3Join Date: 2009-12-17 Post Count: 11442 |
Again, obvious method is obvious. GetDescendants gets descendants. This is not GetChildren. (Yes, farther than one child down.) |
|
|
Just wanted to clarify.
.-.
I am an eggspert in the eggcelent art of egg puns |
|
Malcolt3Join Date: 2009-12-17 Post Count: 11442 |
Bump24 |
|
|
Support.
Would make stuff alot easier.
~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~ |
|
|
???????
çç82(Got something on your screen, lad?) |
|
|
Bergan is true, the LUA language has stayed the same. But support anyways. |
|
DataStoreJoin Date: 2012-02-07 Post Count: 8540 |
Support. It'd be useful. I'm guessing it'd 'return' a table alike the ':GetChildren()' method?
@Blox,
It's not an acronym...
@Bergan,
No, it'd just be an addition. |
|
Malcolt3Join Date: 2009-12-17 Post Count: 11442 |
Bergan and Blox, it has not remained the same. Roblox has modified several times. |
|
|
|
Definitely need this
Support |
|
chicka123Join Date: 2008-07-05 Post Count: 25356 |
Sure. |
|
|
Hello players,
Lua has changed to fit ROBLOX. When it's in it's original state, Lua is not an actual OOP language, but can easily adapt to be one with some modifications. A :GetDescendants() method would not require anything but a simple addition to the Lua API.
- thedestroyer115
|
|
Malcolt3Join Date: 2009-12-17 Post Count: 11442 |
Bump44 |
|
Malcolt3Join Date: 2009-12-17 Post Count: 11442 |
Bump43 |
|