View Single Post
Old 07-03-2012, 10:08 AM   #1
FarbrorGnur
Rookie
 
FarbrorGnur's Avatar
 
Join Date: Aug 2011
Posts: 47
Why doesn't this map script work?

I'm trying to make a rotating door, for JK2 singleplayer.

Code:
//Generated by BehavEd

rem ( "comment" );

affect ( "rotadoor1", /*@AFFECT_TYPE*/ FLUSH )
{

	task ( "drota1" )
	{
		rotate ( < 0.000 -90.000 0.000 >, 2500.000 );
		do ( "drota1" );
	}

}

wait ( "7000" );

affect ( "rotadoor1", /*@AFFECT_TYPE*/ FLUSH )
{

	task ( "drota2" )
	{
		rotate ( < 0.000 0.000 0.000 >, 2500.000 );
		do ( "drota2" );
	}

}
I've followed this tutorial.
This is the script, which I've compiled to ibi, and is located like: scripts/reference/dooropener.
The map contains a func_static, whose script_targetname is rotadoor1. A trigger_multiple outside the door on both sides is targeted at a scriptrunner with
count -1
usescript reference/dooropener.

I haven't areaportalled like in the tutorial, and only using a single door. I don't see what's wrong though, it won't move or react at all though. I've tried placing all the files used in a pk3, and such. Anyone with some experience with scripts?
FarbrorGnur is offline   you may: quote & reply,