YouGroove Posted March 26, 2014 Share Posted March 26, 2014 Would be great instead of having to use ForEach and function below function Callback(camera,entity, extra) --We only want to execute this on models. if (entity:GetClass()==Object.ModelClass) then local name = entity:GetKeyValue("name") if (name ~= "") then .... end end end Having that function hard coded in the engine could be great to simply in one line of code get entity by name or ID like : Map:getEntity("name") or World:getEntity("name") Quote Stop toying and make games 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.