1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

"Unhide" flexbodies via lua code?

Discussion in 'Programming' started by Noodles0026, Feb 24, 2019.

  1. Noodles0026

    Noodles0026
    Expand Collapse

    Joined:
    Jan 23, 2019
    Messages:
    2
    Hi Devs,

    At the moment "unhiding" or making a flexbody part visible is done via node damage:

    {"deformGroup":"windshield_break", "deformMaterialBase":"glass_invisible", "deformMaterialDamaged":"glass_mirror"}

    Is it possible to trigger the material change via lua script (via a hotkey e.g. numpad keys) even if you dont trigger the deform damage? Since you are already loading the flexbody and making it invisible via a material. So basically just controlling the flexbody material's opacity/visibility.


    Thanks
    -N26
     
  2. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,420
    im not sure how to do it but you'd have to add a control

    Capture.png

    im sure there are other control functions but the one im most familiar with is the thrusters system with a control function

    open some vehicles jbeam files to check for other control functions and try to add it to your functon
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice