How does sim.partNeighbors work??

  • stillthere
    21st May Member 0 Permalink

    So i already know how to use sim.partNeighbors, its like This: sim.partNeighbors(x,y,1,1)

    But how do you use it??

     

    I used ipairs() and pairs() with the "for" function but it not working

    do yall know how to use it??

  • Aeiouman
    15th June Member 0 Permalink

    You gotta do something like
    for part in sim.partNeighbors(x, y, 1, 1) do
    part is the part id of the neighbor

    Edited once by Aeiouman. Last: 15th June