Hey all,
I want to make a door you can open only with a button.
I followed this tutorial:
http://nibsworld.com/rtcw/tutorial_basic_script_mover.shtml
I made a func_invisible_user:
target: button_01
Also I made a target_script_trigger:
targetname: button_01
target: move_to_destination
scriptname: move_platform
I made a large brush(the door) with a small brush(origin texture) in the middle of it.
I selected them both and gave the: script_mover
scriptname: platform
I made a path_corner:
targetname: point_01
MY SCRIPT FILE:
game_manager
{
}
move_platform
{
// This is the target name of your target_script_trigger
trigger move_to_destination
{
// Calls move_dest trigger within platform function block
trigger platform move_dest
}
}
// Function block. This is the scriptname used on your script_mover brush
platform
{
// Called by your move_platform trigger move_to_destination
trigger move_dest
{
// move the script_mover defined by scriptname "platform" to path_corder
// with a targetname of "point_01" 32 is the speed of the movement
gotomarker point_01 32
}
}
The problem is that the door isn’t doing anything when I use the button(func_invisible_user).
Please help me.
Ps: is there a prefab of it?
pepijn