Jump to content

DigitalHax

Members
  • Posts

    295
  • Joined

  • Last visited

Posts posted by DigitalHax

  1. TBody body=CreateBodyBox(10,4,6.5);

    SetBodyMass(body,1.5);

    SetBodyGravityMode(body,-10);

    PositionEntity(body,Vec3(1200,200,75));

    EntityType(body,1);

    SetEntityCallback(body,(byte*)EntityCollisionCallback,ENTITYCALLBACK_COLLISION);

     

    TVehicle car = CreateVehicle(body);

     

    Uh. Thats it.

  2. Hey. I want to make a vehicle in C++, and I am having a bit of trouble figuring out the commands.

     

    I have looked at the lua example, but I am still having a bit of trouble. It is mostly the wheels i cant figure out though.

     

    Can anyone provide a bit of example in C++?

     

    Thanks in advance,

     

    DH

  3. I know that, and in my C++ programming I have been loading the scenes made in the editor. But if I want to have things put in my scenes, I don't really see any other option than using lua for scripting. I wouldn't really make sense to spend ages positioning things coded in cpp, only to be able to drag and drop lua into it. There is just not that interaction between main code and scenes you make.

  4. I'm just thinking that how could I possibly have placement in the editor with this? I would have to spend ages messing with XYZ space to position all. No matter how much I want to use C++ I cant make a level in it.

     

    By the way pixel I'd like to see about how your one works.

  5. I would be already be into creating my own weapon system now, except I don't know almost anything about lua. Especially things like making classes etc. I just dont have the knowledge about lua to make something like this.

  6. Hey everyone.

    I am looking for creating a lua weapon script for long term use. I want to be able to have them loaded in the editor and picked up on the hit of a key.

     

    I have seen the power tutorial with gamelib to load weapons. But I am not to keen on using it. Now I understand a few people are developing something similar, like the lua weaponwerks.

     

    One example I know of is pixel perfects weapon system.

    Something like that would be just what I need.

     

    If anyone knows anywhere I can get started(i am not that great with lua) or provide some basis would be great.

     

    Thanks in advance.

  7. http://www.leadwerks.com/files/Tutorials/Lua/Getting_Started_With_Lua.pdf

     

    I do not think you can run commands that are lua commands directly, but overall C++ is much more documented for use. It has many libaries and ways to refine the programming to your need. I use C++ for main things, and I find that knowing C++ can help you use lua. It doesn't work the other way around. Both are equally important for making anything decent, with lua for making entities in the editor.

×
×
  • Create New...