JDKnite188 Posted July 18, 2003 Share Posted July 18, 2003 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. Link to comment Share on other sites More sharing options...
Emon Posted July 19, 2003 Share Posted July 19, 2003 List the KEYs and values for these parameters. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.