Hi dinosaur,
Thanks for trying it for me.
Here is the full code :-
Code:
action puddle()
{
ent_playsound(my,smallsplash,120);
set(my,PASSABLE);
my.scale_x = 1.3;
my.scale_y = 1.3;
my.scale_z = 1.3;
my.skill28 = 0;
vec_set(temp,my.x);
temp[2] -= 4000;
result = c_trace(my.x,temp,IGNORE_ME|IGNORE_MODELS|IGNORE_SPRITES|IGNORE_PASSENTS);// subtract vertical distance to ground
if (result < 10) {
my.z -= (result - 1);
vec_to_angle(temp,normal.x);
my.tilt = temp[1];
my.pan = temp[0];
}
vec_set(temp,my.x);
temp[0] += 70 * cos(player.pan);
temp[1] += 70 * sin(player.pan);
result = c_trace(my.x,temp,IGNORE_ME|IGNORE_MODELS|IGNORE_SPRITES|IGNORE_PASSENTS);
if (result < 10 && result > 0)
{
my.z -= (result - 1);
vec_to_angle(temp,normal.x);
my.tilt = temp[1];
my.pan = temp[0];
my.z += 30;
if (my.tilt < 30) { my.skill28 = 1; }
}
set(my,TRANSLUCENT);
my.alpha = 18;
while (my.alpha > 0)
{
my.alpha -= 0.4 * time_step;
my.scale_x += 0.06 * time_step;
my.scale_y += 0.06 * time_step;
my.scale_z += 0.06 * time_step;
if (my.skill28 == 1)
{
my.z -= 4.5 * time_step;
my.scale_x -= 0.02 * time_step;
my.scale_y += 0.06 * time_step;
}
wait(1);
}
ent_remove(my);
}
The problem is happening in every line that has "result" in it.
Which version of the engine did u try this ?
Thanks !
regards
zazang