I've done some mapping and bit scripting.
Today I have the next problem:
I've made a door which goes down > movey -160
The trigger I used is the trigger_damage.
So when someone shoots the right point the door goes down and you can enter the room.
I used the followed script:
Code: Select all
thread elecdoor ();
}
elecdoor()
{
slidedoor = getent( "elecdoor", "targetname" );
trig = getent( "elec", "targetname" );
trig waittill ("trigger");
slidedoor movey ( -160, 2, 1, 1);
slidedoor waittill ("movedone");
}
Whenever I damage the trigger I get the next message:
undefined is not an object
I though my script would work, but I can't see the problem.....
If any of you could help me giving a solution, I'd learn from it.
Greetz