Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HIHelp... again
#1
I have a script compile error.could you help me?

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 )

}
[Image: 1nzceg.png]
Reply

#2
MoveZ requires the time parameter.

See this:
http://www.zeroy.com/script/motion/movez.htm


Edit:
You also forgot to set ";" after moveZ.
Reply

#3
brick_dest MoveZ( -256 );<---


";" missing in 3 lines
Reply

#4
(04-17-2012, 01:53)trasto Wrote: brick_dest MoveZ( -256 );<---


";" missing in 3 lines

Yes... I already mentioned that.
Reply

#5
and what about the line

brick_get waittill( "use", player );

[Image: 1nzceg.png]
Reply

#6
(04-17-2012, 18:50)tsoPANos Wrote: and what about the line

brick_get waittill( "use", player );

No error on that, just the movezs
Reply

#7
COD 4 says bad syntax at the line
Code:
brick_get waittill( "use", player );


Should I make it like this?
Code:
brick_get waittill( "trigger", player );

[Image: 1nzceg.png]
Reply

#8
(04-18-2012, 09:34)tsoPANos Wrote: COD 4 says bad syntax at the line
Code:
brick_get waittill( "use", player );


Should I make it like this?
Code:
brick_get waittill( "trigger", player );

Yes.
Reply

#9
@Rendflex I don't think this triggers a bad syntax error.

Here is also a ; missing

level.door_move_speed = 3;
[Image: azuw.jpg]
Reply

#10
(04-18-2012, 11:51)zxz0O0 Wrote: @Rendflex I don't think this triggers a bad syntax error.

No, it doesn't. However, I had to make sure the script worked correctly.
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.