PDA

View Full Version : Where do the PARMs of this script go?


JDKnite188
07-18-2003, 04:43 PM
I have a trigger_multiple targeting a target_scriptrunner. The script affects other entities. Here is the script:

code:
--------------------------------------------------------------------------------
//Generated by BehavEd

rem ( "Door Lock Switch Script by JDKnite188, moves trigger so door controls are not usable, but can also be used to move them back" );
rem ( "parm1 is the setting locked or unlocked" );
rem ( "parm2 is the unlocked position of the trigger" );
rem ( "parm3 is the locked position of the trigger" );
rem ( "parm4 is the script_targetname of the trigger" );
rem ( "parm5 is the func_usable on switch (changable from original map settings)" );
rem ( "parm6 is the func_usable off switch" );

affect ( $get( STRING, "SET_PARM4")$, /*@AFFECT_TYPE*/ FLUSH )
{

if ( $get( STRING, "SET_PARM1") = "locked"$ )
{
move ( $get( VECTOR, "SET_PARM3")$, $get( VECTOR, "SET_PARM2")$, 1000.000 );
set ( /*@SET_TYPES*/ "SET_PARM1", "unlocked" );

affect ( $get( STRING, "SET_PARM6")$, /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_FUNC_USABLE_VISIBLE", "true" );
}


affect ( $get( STRING, "SET_PARM5")$, /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_FUNC_USABLE_VISIBLE", "false" );
}


else ( )
{
move ( $get( VECTOR, "SET_PARM2")$, $get( VECTOR, "SET_PARM3")$, 1000.000 );
set ( /*@SET_TYPES*/ "SET_PARM1", "locked" );

affect ( $get( STRING, "SET_PARM5")$, /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_FUNC_USABLE_VISIBLE", "true" );
}


affect ( $get( STRING, "SET_PARM6")$, /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_FUNC_USABLE_VISIBLE", "false" );
}

}

}

}


--------------------------------------------------------------------------------

Where do I put my PARM values in the map editor? I put them on the target_scriptrunner and the script didn't work.

Emon
07-19-2003, 08:14 AM
List the KEYs and values for these parameters.