I don't know why, but there is nothing in .entity
When I try get all attributes of it, I get only "__self" and nothing else.
Code: Select all
function EntityInfo (entity)
for i, j in pairs (entity) do
someFunction(i, j)
end
end
Code: Select all
function EntityInfo (entity)
for i, j in pairs (entity) do
someFunction(i, j)
end
end
Code: Select all
local parameters = {"name", "type", "rotatable", "health", "direction", "orientation"}
for i, j in pairs(parameters) do
someFunction (j, entity[j])
end