• Entity Creation Problems (Within Mapping, but entity code in lua) - Mapping Section
    2 replies, posted
I created an entity within a map with a custom class and everything for purposes of using it to draw a 3d2d scoreboard on the lua-side. However, for some reason the entity always is created at the origin. Am I missing a keyvalue of some kind or what? So all I did was go in... Draw a box change its texture to trigger texture, give it a custom class of trigger_news, and then write the code for it in the entities folder in lua. However, It always points to the origin because on: function ENT:Initialize(), it prints out the vector of its location which is apparently 0,0,0 even though It most definetely shouldn't be.
Are you sure your LUA entity is brush based, that seems more like a point entity. If not, it seems like an LUA problem since the brush isn't going to move during compile.
Yeah its brush based.
Sorry, you need to Log In to post a reply to this thread.