Here's my script for the Stuka ( I used the tutorial )
Now there is also a diff weird thing, I didnt fill in any sounds, but I do hear one? Not that it's not good, it's actually perfect, but I don't know how I did it.main()
{
level thread planes();
}
planes()
{
level.PlaneSpeed = 1.5;
stuka1 = getent ("stuka1","targetname");
temp = getent (stuka1.target,"targetname");
stuka1.dest = temp.origin;
stuka1.start = stuka1.origin;
stuka1 hide();
wait 2;
while (1)
{
stuka1 thread plane_flyby("stuka_flyby");
wait .15;
wait 60;
}
}
plane_flyby(sound)
{
// If you specified a sound to play then play it
if (isdefined (sound))
self playsound (sound);
wait 15;
self show();
self moveto(self.dest, level.PlaneSpeed, 0.1, 0.1);
wait level.PlaneSpeed;
self hide();
self.origin = self.start;
}
Thx for the help