script problem


(~Shady~) #1

Hi all first of all i’ve searched all on the forum but i couldnt find an answer
I’m making my first trickjump map and now @ start i want to make something with walls triggered by an button. if got an func_invisible_user targeted to an target_script_trigger. i’ve got 6 walls and they have to get down by that button and next 3 seconds it has to get up again. when down the floor will have to go down to soo the player will be teleported to the first jump… this is my code for now:

start_original_wall_1
{	
	trigger start_original_wall_1_a
	{
		gotomarker start_original_wall_abc 100
		wait 300
		gotomarker start_original_wall_abcd 100
	}
}

start_original_wall_2
{	
	trigger start_original_wall_2_a
	{
		gotomarker start_original_wall_abc 100
		wait 300
		gotomarker start_original_wall_abcd 100
	}
}

start_original_wall_3
{	
	trigger start_original_wall_3_a
	{
		gotomarker start_original_wall_abc 100
		wait 300
		gotomarker start_original_wall_abcd 100
	}
}

start_original_wall_4
{	
	trigger start_original_wall_4_a
	{
		gotomarker start_original_wall_abc 100
		wait 300
		gotomarker start_original_wall_abcd 100
	}
}

start_original_wall_5
{	
	trigger start_original_wall_5_a
	{
		gotomarker start_original_wall_abc 100
		wait 300
		gotomarker start_original_wall_abcd 100
	}
}

start_original_wall_6
{	
	trigger start_original_wall_6_a
	{
		gotomarker start_original_wall_abc 100
		wait 300
		gotomarker start_original_wall_abcd 100
	}
}

start_original_floor_1
{	
	trigger start_original_floor_1_a
	{
		gotomarker start_original_floor_1_b 100
		wait 100
		gotomarker start_original_floor_1_c 100
	}
}

start_original
{
	trigger original
	{
		trigger start_original_wall_1 start_original_wall_1_a
		trigger start_original_wall_2 start_original_wall_2_a
		trigger start_original_wall_3 start_original_wall_3_a
		trigger start_original_wall_4 start_original_wall_4_a
		trigger start_original_wall_5 start_original_wall_5_a
		trigger start_original_wall_6 start_original_wall_6_a
            trigger start_original_floor_1 start_original_floor_1_a
	}
}


for now if is use the button the walls and floor are going out the map to no where and wont come back (or come back very late) they arent going down or up just to the side…

pls help me out
shady

ps. sorry for bad english.


(S14Y3R) #2

hi, your wait times are probably too short. Script times are in MiliSeconds(1000=1sec), so your 300 is only waiting .3 seconds. Try turning it up to 3000, for 3sec.


(Loffy) #3

yeah, slayer is right.
You can also add wait after the speed. That will force the script to wait until it has reached the goto-place until continuing with the script.
gotomarker start_original_wall_abc 100 wait


(Roeltje) #4

Loffy’s totally right! :smiley:


(~Shady~) #5

hmm oke it doesnt works really the problem is that it doesnt goes in the direction of my marker… it goes streat ahead to another side… i’ve chanced my scripts a little bit:


start_original_wall_1
{	
	trigger start_original_wall_1_a
	{
		gotomarker start_original_wall_abc 100 wait
		wait 3000
	}
}

start_original_wall_2
{	
	trigger start_original_wall_2_a
	{
		gotomarker start_original_wall_abc 100 wait
		wait 3000
	}
}

start_original_floor_1
{	
	trigger start_original_floor_1_a
	{
		gotomarker start_original_floor_1_b 100 wait
		wait 1000
		gotomarker start_original_floor_1_c 100 wait
	}
}

start_original
{
	trigger original
	{
		trigger start_original_wall_1 start_original_wall_1_a
		trigger start_original_wall_2 start_original_wall_2_a
            trigger start_original_floor_1 start_original_floor_1_a
	}
}


and i tried it in my map but it doesnt works and i still wont come back…
shady


(Loffy) #6

In screen shot, it looks like you have orgin. But is the origin really made a part of the script_mover entity? make sure origin brush is moved into script_mover entity.


(~Shady~) #7

soo i need to add a origin brush?


(WeeBull) #8

yep, make and origin brush, then make your mover, select them both, right click -> script_mover. the center of this origin brush will move from the point you put it in radiant to the center of the path_corner taking the brush with him.


(~Shady~) #9

k thnx i will look when i can get on my own pc :smiley: my sister is on it now, i think it will work great work ppl for your reply’s! watch etmaps and www.sensitive-g.tk for new trickjump map it will be great :smiley:

shady