It says Error(269)- Syntax Error
Where should I put this "c_updatehull" and which are their parameters?
I am using this code from Aum:
Code:
define amplitude skill1;
define water_speed skill2;
define number_of_vertices 2025;//16896; // vertices x vertices. The .HMP Provided is 16896
////////////////////////////////////////////////////////////////////////////////////////
var vertex_array[number_of_vertices];
var counter;
var index;
function nice_waves
{
if (my.amplitude == 0)
{
my.amplitude = Onda;//3;//1.5;//.7; // This is the height
}
if (my.water_speed == 0)
{
my.water_speed = 7; // This is the speed of the waves
}
counter = 0;
while (counter < number_of_vertices)
{
vertex_array[counter] = random(360); // set random values in vertex_array
counter += 1;
}
while (1)
{
index = 0;
while (index < number_of_vertices)
{
vec_for_mesh(temp, my, index); // store the vertex coordinates in temp
temp.z = sin(counter + vertex_array[index]) * my.amplitude; // change the z component
vec_to_mesh(temp, my, index); // deform the terrain entity
index += 1;
}
counter += my.water_speed * time;
wait(1);
}
}