Error in my script
Posted: April 10th, 2014, 9:35 pm
Hello, i'm making a deathrun map, and I get an error when compiling the map in this part :
The error show me this line :
Can you help me ? Actually it's a door dat pop out of the floor, and then after wait(10), get back into the floor at the initial position. The door is "trap4" and the activation button is "trap4_trigger"
Thanks
Code: Select all
trap4()
{
trap4=getent("trap4","targetname");
trap4_trigger=getent("trap4_trigger","targetname");
while(1)
{
trap4_trigger waittill ("trigger");
trap4 movez (224,4,1,1);
wait(10)
trap4 movez (-224,4,1,1);
wait(4)
}
}
Code: Select all
trap4 movez (-224,4,1,1);
Thanks