Rick Posted January 4, 2014 Share Posted January 4, 2014 Since entity names can be the same, how does LE know the right entity to use when I drag it in as a script parameter? Quote Link to comment Share on other sites More sharing options...
Admin Posted January 5, 2014 Share Posted January 5, 2014 It stores the entity pointer itself and only displays the name. Quote Link to comment Share on other sites More sharing options...
Rick Posted January 5, 2014 Author Share Posted January 5, 2014 You don't store the pointer in the map file right, as the pointer value you get each time the app actually runs can be different. So what I mean is how does the translation from not running to running happen with entities so that the property knows what entity to use at run-time? Quote Link to comment Share on other sites More sharing options...
Admin Posted January 5, 2014 Share Posted January 5, 2014 The pointer is converted to an integer and stored in the map file as an entity ID, then the association is recreated when the map is loaded. Quote Link to comment Share on other sites More sharing options...
Rick Posted January 5, 2014 Author Share Posted January 5, 2014 If I had that integer ID, would I be able to find that entity when the game starts up based on it? What I mean is that in world->entities what field of an entity would this map integer ID be so that I could find it if I wanted to? Quote Link to comment Share on other sites More sharing options...
Admin Posted January 5, 2014 Share Posted January 5, 2014 It's stored in a temporary map when the file is loaded. It isn't stored in the entity itself. Quote Link to comment Share on other sites More sharing options...
Rick Posted January 5, 2014 Author Share Posted January 5, 2014 Thanks for the info! 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.