February 18th, 2004
|
#1 |
| Slightly cooler than a n00b
Join Date: February 3rd, 2004 Location: Sweden Status: Available Rep Power: 0 | look at this I made a script for my map. Whats wrong with it? Everything works, but the game goes really slow when I load the map. It didnt before I added the script. Im trying to learn scripting so please help
void main();
void init();
void picard();
void cadet2();
void cadet3();
void cadet4();
void lights();
void init()
{
thread picard();
thread cadet2();
thread cadet3();
thread cadet4();
thread lights();
}
void main()
{
soundtrack( "music/m2l1-sfa.mus" );
thread init();
}
void picard()
{
$picard.ai_off();
wait(2);
$picard.anim( "cin-m6l0-engineering-femalea" );
thread picard();
}
void cadet2()
{
$cadet2.ai_off();
wait(2);
$cadet2.anim( "ent-sickbed-sitting-gesture1" );
thread cadet2();
}
void cadet3()
{
$cadet3.ai_off();
wait(2);
$cadet3.anim( "conv-talk3" );
thread cadet3();
}
void cadet4()
{
$cadet4.ai_off();
$cadet4.walkto("$way1");
waitfor($cadet4);
$cadet4.walkto("$way2");
waitfor($cadet4);
$cadet4.anim( "ent-guard-gesture" );
thread cadet4();
}
void lights()
{
$world.light_lightstyle( "light01", "aaaaazzzzzaaaaazzzzzjjaaaaaazzzzaaaajaaaajzzzzzaz azazajjzaaaaazzkahjszwufkjaz", 0 );
thread lights();
} |
| |
| |