Moving brushes
Posted: February 18th, 2012, 9:35 am
Hi,
I've searched around and read about scripting, but I still can't figure out how to make a brush move on the X or Y.
I know part of the script that needs to be used for it.
My question now is, if you could help me making the next script to do just a simple X or Y move and the trigger and brush reset after each round. It's like a door who needs to be opened each round again.
This is what I've tried, but it doesn't seem to work. Since I don't know how to make a reseting trigger + brush, I hope someone can put that in the script or atleast give the commands needed for.
So if someone could help me it would please me!
I'm sorry for my english, hope you can udnerstand me.
I've searched around and read about scripting, but I still can't figure out how to make a brush move on the X or Y.
I know part of the script that needs to be used for it.
My question now is, if you could help me making the next script to do just a simple X or Y move and the trigger and brush reset after each round. It's like a door who needs to be opened each round again.
This is what I've tried, but it doesn't seem to work. Since I don't know how to make a reseting trigger + brush, I hope someone can put that in the script or atleast give the commands needed for.
Code: Select all
main()
{
thread Spawndoor_slider ();
}
Spawndoor_slider()
{
slidedoor = getent( "Spawndoor", "targetname" );
trig = getent( "Spawndoortrigger", "targetname" );
while(true)
{
trig waittill ("trigger");
//wait 1;
slidedoor movex ( 448, 0, 0, 0.5);
slidedoor waittill ("movedone");
}
}
I'm sorry for my english, hope you can udnerstand me.