cant find target


(Oxygen - o2) #1

hey

at the end of my map a train spawns and moves from a box into position to go along the track but it cant find the path_corner

it says cant find entity in map targetname = “train1”

i have checked typos and thats not a problem
the train is triggerspawn, so it spawns later on in the map when its finished
also the train in in a box seperated from the main part of the map, could this be a problem?

i cant think whats wrong?

here is some script

	trigger allies_win	//ALLIES KICKED AXIS BUTT!!!!!
	{
	wm_setwinner	1
	wm_announce "^2Allies have destroyed the radar, the train continues its journey!"

	wm_objective_status 5 0 2
	wm_objective_status 5 1 1

	wait 4000

	trigger train spawn

	wait 1000
	wm_endround
	}
train
{
	spawn
	{
	trigger self go_for_it
	}

	trigger go_for_it
	{
	gotomarker train1 100000 wait
	playsound sound/movers/tug/tug_move.wav volume 1500
	wait 10
	gotomarker finish 1000 wait
	wait 4000
	stopsound
	}
}

(No1_sonuk) #2

it says cant find entity in map targetname = “train1”

This means there’s a problem in the map, not the script. It means you don’t have a path corner with a “targetname train1” key pair in your map.


(Oxygen - o2) #3

*weaps in dispair

you see the path corner called train1 IS there, im not that dumb


(zl1corvette) #4

Are you saying that your main control point thingy targets a corner thingy, if so you can’t do it that way, you have to target another main and add a control key to the first main.