AggrorJorn Posted March 24, 2010 Share Posted March 24, 2010 I've noticed that a lot of commands that I am using in Lua script can be mixed with the ones from C++. Some times a command works and sometimes it doesn't. The weird thing is that the C++ commands often turn blue while the actual Lua command stays black . Is this because the commands from C++ are universal too whatever script editor you are using? Place the following in your lua script editor and you'll see: -- Lua command body:SetCollisionType(1,1) --C++ EntityType (body,1) -- Lua command body:SetMass(0.01) --C++ SetBodyMass(body, 0.01) --confusing: --Lua command in combination with C++ ground:PaintEntity(material) --command that you should use, but does not turn blue ground:Paint(material) Quote Link to comment Share on other sites More sharing options...
Pancakes Posted March 24, 2010 Share Posted March 24, 2010 this concerns me too a novice such as myself could use as much help as I can get, and the inconsistency in the way that the commands receive highlighting in the editor is something that has brought doubts to my own coding experience in the past, present and I'm sure the future as well Quote Core I5 2.67 / 16GB RAM / GTX 670 Zbrush/ Blender / Photoshop CS6 / Renoise / Genetica / Leadwerks 3 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.