Doing this made some problems.
I want to make clear that the trap works, only add 1) to it!
I got my first trap working how, but I want it so that:
1) you can use it only once a round
Code: Select all
thread firetrap ();
}
firetrap()
{
firetrap = getent( "firetrap", "targetname" );
trig = getent( "firetraptrig", "targetname" );
while(true)
{
trig waittill ("trigger");
firetrap movex ( -137, 0.5, 0.25, 0.25);
firetrap waittill ("movedone");
wait 5;
//trig waittill ("trigger");
firetrap movex ( 137, 4, 2, 2);
firetrap waittill ("movedone");
1) a piano falling downstairs ( like a brush moves down )
2) the floor where the piano falls breaks and falls aswell for a bit
3) also you can use it only once a round
Code: Select all
thread pianotrapfloor ();
}
pianotrapfloor()
{
pianotrapfloor = getent( "pianotrapfloor", "targetname" );
trig = getent( "pianotraptrig", "targetname" );
trig waittill ("trigger");
pianotrapfloor movey ( -200, 0.5, 0.25, 0.25);
pianotrapfloor waittill ("movedone");
}
Everything went good, I even can go ingame without any errors,
but the floor doesn't fall down or maybe the trigger doesn't work.
I got the right targetnames and target, I'm 100% sure of that.
So if anyone would have some tips/help, your welcome!