04-16-2012, 17:41
I have a script compile error.could you help me?
line brick_get waittill( "use", player );
line brick_get waittill( "use", player );
Code:
#include common_scripts\utility;
#include _utility;
main()
{
level.door_move_speed = 3 // set this higher for the door to move slower
thread easter_egg();
}
easter_egg()
{
//get the bricks and triggers
brick_start = getent ("brick1","targetname");
brick_dest = getent ("brick2","targetname");
brick_get = getent ("trigger_brick","targetname");
brick_give = getent ("give_brick","targetname");
wait .05;
brick_dest MoveZ( -256 )
brick_get waittill( "use", player );
brick_start MoveZ( -256 )
trig_get sethintstring( "" );
IPrintLnBold( "Search for the hole on the brick wall!" );
brick_give sethintstring( " F " );
brick_give waittill( "use", player );
brick_dest MoveZ( +256 )
brick_get sethintstring( "" );
Earthquake( 0.5, 5, self.origin, 512 );
IPrintLnBold( "You placed the brick!" );
thread DISCOVER();
}
DISCOVER()
{
door = getent ("door","targetname");
door MoveZ( -100, level.door_move_speed )
}