Get node values

Discussion in 'Content Creation' started by MorzBNG, Dec 30, 2024.

  1. MorzBNG

    MorzBNG
    Expand Collapse

    Joined:
    Nov 27, 2019
    Messages:
    92
    I'm working on a mod right now and I would like to know if it is possible in any way to get if a given node is in water or not (called "density" in the node debug view). It seems to me that those node values are not exposed anywhere, but I'd like to be proven otherwise. And maybe there is a workaround somehow?
     
  2. DaddelZeit

    DaddelZeit
    Expand Collapse

    Joined:
    Jul 17, 2019
    Messages:
    3,515
    There's a function in the BeamObject "obj" global for this:
    Code:
    obj:inWater(cid)
     
    • Like Like x 1
  3. MorzBNG

    MorzBNG
    Expand Collapse

    Joined:
    Nov 27, 2019
    Messages:
    92
    ok thank you very much!
     
  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