YouGroove Posted August 3, 2013 Share Posted August 3, 2013 I don't find that. I use GetEntityNeighbors function, and in the loop i would wish to test if the entity names is equal to "hair001" for example. How to do it in Lua ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 3, 2013 Share Posted August 3, 2013 Something like this: if entity:GetKeyValue("name")== "hair001" then --- Do something end 1 1 Quote 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.