Need help with script_mover!


(Crocopep) #1

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


(Magic) #2

Hi
Do you have the script_multiplayer in your map?

Here you have a prefab - not sure if this is what you are looking for,
but you can modify it to your needs.
You will need to make a speaker in game -

With these values:

Noise: sound/movers/misc/big_gate2.wav
Targetname: big_gate
Looped: off
Looped: off
Broadcast: nopvs
Volume: 120
Range: 1250

Door prefab


(Crocopep) #3

Thx, that’s exactly what I want.

But I think I have an other problem, your prefab isn’t working.

What am I doing wrong?

I put your script file in etmain/scripts and the .map file in etmain/maps

But when I compile and play, your door isn’t working too.

SOLVED
Stupid me. I had to put the .script file in etmain/maps