Jump to content

LE3 : World.getEnityByName("Player2")


YouGroove
 Share

Recommended Posts

We could probably make this ourselves, however in LE it seems the names can be duplicated, so you'd get a table back with all the names that match and would have to sort through them to find the one you want, IF, you didn't stick to a strict naming convention.

Link to comment
Share on other sites

In fact i think specific entities must be stored in App.lua script.

It could be an array of weapon names (that could be loaded by other script) etc ...

I think we can avoid such function by finding other ways to work.

 

For collision, when it happens you have the entity names , so perhaps really not need for such function i posted ?

Stop toying and make games

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...