SphereCommunity
type in function - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: type in function (/Thread-type-in-function)

Pages: 1 2


RE: type in function - XuN - 10-29-2013 06:22 AM

I did not test tbh... here's the function tested and working Smile

Code:
[function f_ztimerfix]
if !(<isempty <args>>)
    tag.real_z=<p.z>
    move 0 0 <args>
    timerf 0,f_ztimerfix
else
    if (<p.z><<tag.real_z>)
        move 0 0 1
        timerf 0,f_ztimerfix
    else
        tag.real_z
    endif
endif

The problem was using p.z +=1, it's using move 0 0 1 now.


RE: type in function - seafish - 10-29-2013 11:04 AM

Thank you senior! It's works, I hope this function will be legacy for next generation.