Jump to content

diedir

Developers
  • Posts

    258
  • Joined

  • Last visited

Posts posted by diedir

  1. Hi all

     

    does "setcallback" working in LUA ?

     

    I need to know if and when/where the bullet i throwed, touch another entity (body).

    if someone could post some lines of a simple sphere touching a cube, with the callback generated, it would be great.

     

    thanks everybody

    have nice day

  2. thanks for the code look really easier than i thought, i will try this at home

    (shhht) i am at wrk now...

     

    Thanks a lot

    great community here i am happy ! :))

     

    EDIT:

     

    Your code works as i wanted, very helpful for me. :)

     

     

    Thanks a lot

  3. Yes Aggror, could be a must and very busy business :)

     

    Guys i need one (lier) more thing for my level:

     

    -i have a car loaded in 3rd view camera

    -i want to retrieve the speed (velocity) of my car

     

    i can't have this to work:

     

    myspeed=chassis:GetVelocity(1).z

     

    leads to an index error...

    all my attempts to get the tirespeed or carobject.vehicle speed failed.

    i'm lost here

     

    thanks for help

  4. thanks i will try sooner

    and yes they are parented, thanks for the tip

    -----------------------------------------------------------------

    EDIT:

    Really want to thank you Mack !

    it works great my lord !

     

    I owe you two or three beers or

    easier for me a fresh bottle of white wine like "Sancerre" or "Mâcon Uchisy" (if you come to France, tell me where and when)

    you already saved my poor knowledge code :)

    -----------------------------------------------------------------

  5. Hi all

    i need some help please,

    i already can make appear a cube in front of my running car

    but i can't figure how to throw it toward the z axis of the car and addforce (punching) the model (another car) in front of it

     

    here is my current code (not working at the addforceatpoint line)

     

    	                             ----retourne camera position
    				local i=TFormVector(Vec3(0,0,9),camera,nil)
    				i=Vec3(camera:GetPosition(1).x +i.x,camera:GetPosition(1).y -2.5,camera:GetPosition(1).z +i.z)
    				---position projectile
    				projectile:SetPosition(i)
    				--position phyproj
    				phyproj:SetPosition(i)
                                           --------------------------------
    				--this next line not working
    				phyproj:AddForceAtPoint(Vec3(0,0,-2),Vec3(projectile.position.x,projectile.position.y,projectile.position.z+0.5))

     

    my code is based on 3rd view chasing camera

     

    thanks a lot for viewing and much more for helping :)

  6. Salut Filax

     

    super boulot, bravo.

     

    mes tests: Q6600 Vista64 ATI 5850 de 40 FPS à 75

    avec tout activé sans wireframe.

     

    sympa de voir des frenchies relever le niveau.

     

    j'attends la suite avec impatience :mellow:

  7. Hi NA and all people,

     

    i need to very thank you and encourage you for your proposal,

     

    i would like to have AI Racing car, each car purchasing each others with the goal to win race

    collecting powerups and throwing smartly the projectiles on the right moment

     

    but adapting AI to player skill, to not discourage a beginner.

     

    some similar games i wanted to mimic (at least in ideas) are Blur, or Re-Volt (old one but good one)

     

    really great community here, thanks all for be here !!

    :P:)

  8. thx for the link, i saw it before but don't remember where, Rick is always an helper.

     

    other things, i found the "turret" code thing in viperscout.lua which is handy for what i need, and yes it is by "FindChild" way

     

    EDIT:

    i put a video on my blog with my running car

  9. i am a bit disappointed with lua things,

     

    in my pro real life, i'm coding a bit with vbs script, the objects exposed by windows are such easy to grab, name and manipulate that it is a game for me.

     

    BUT here in lua all that i can grab from my loaded model is a memory pointer in hexa form that is useless for me,

    to be short, i need to retrieve names, position rotation of these "children" of my parent model and "CHANGE" it, but i don't know how, i tried with

     

    for k,v in pairs(object) do ...
    

     

    but no luck, is it a security thing that we can't explore a "GMF" model with ease ? (like in model viewer ?)

    need to dig in lua "metatables" and "__index", "self" things....

     

    sorry to appear :)

×
×
  • Create New...