// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals real array test_vs_x real array test_vs_y real array test_vs_z real vec3_trim_return_x=0. endglobals function initGlobals takes nothing returns nothing endfunction function vec3_trim takes real this_x, real this_y, real this_z, real value returns real local real tuple_temp = this_x local real tuple_temp_1 = this_y local real tuple_temp_2 = this_z local real result_x = tuple_temp local real result_y = tuple_temp_1 local real result_z = tuple_temp_2 if result_x > ( - value) and result_x < value then set result_x = 0. endif if result_y > ( - value) and result_y < value then set result_y = 0. endif if result_z > ( - value) and result_z < value then set result_z = 0. endif set vec3_trim_return_x = result_x return vec3_trim_return_x endfunction function init_test takes nothing returns nothing local real tuple_temp = 3. local real tuple_temp_1 = 15. local real tuple_temp_2 = 4. set test_vs_x[0] = tuple_temp set test_vs_y[0] = tuple_temp_1 set test_vs_z[0] = tuple_temp_2 if 3 > 2 then call vec3_trim(test_vs_x[0], test_vs_y[0], test_vs_z[0], 5.) endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction