Chiblue Posted September 9, 2010 Share Posted September 9, 2010 I have created a new entity in LUA called info_spawnpoint_node.lua along with associated files... When I ready this in my code the class name appears as "info_info_spawnpoint" why? what dictates the class name when using in the scene? the path to the entity is Models/Entities/info/Spawn/Node/ Can someone explain how the class names are derived? Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Rick Posted September 9, 2010 Share Posted September 9, 2010 I didn't even think classname was part of Lua. Did that chance recently? I know it was around before Lua but then I thought it was removed with Lua. I would assume you would be able to set that variable yourself inside your Lua class assuming it's now a variable in the base Lua class. Quote Link to comment Share on other sites More sharing options...
Chiblue Posted September 10, 2010 Author Share Posted September 10, 2010 Well maybe I did not explain it... The code that pulls this is "cn=GetEntityKey(e,"classname");" Which assumes it is a key in lua, but my lua script does not set this value as I thought is defaults to the script name?? Or am I confusing it or myself and add classname as a key within my script? Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Rick Posted September 10, 2010 Share Posted September 10, 2010 I know before Lua each model had a classname key, but once Lua was put in I think it was taken out. You would have to put it in yourself in the Lua scripts. Quote Link to comment Share on other sites More sharing options...
Chiblue Posted September 11, 2010 Author Share Posted September 11, 2010 I found my problem, the .ini for the entity has the class name... thanks Quote If it's not Tactical realism then you are just playing.. 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.