ScriptQueryResult

The result of a query, built by the query builder.

entity

Arguments:

ArgumentTypeDescription
sScriptQueryResultThe query result

Returns:

ReturnDescription
EntityThe entity
local entity = result:entity()

components

Arguments:

ArgumentTypeDescription
sScriptQueryResultThe query result

Returns:

ReturnDescription
Vec<ReflectReference>The components
for _, component in pairs(result:components()) do
    print(component)
end