Problem with a moving object.


(bloodwire) #1

Okay, I have a fairly small map with a moving object on it. There is no trigger or anything since this is an object that is constantly moving anyways.

Here is what I have done so far:

I created the object out of ordinary brushes. Made it script_mover with the following essential attributes:


spawnflags 2
scriptname monsterscript

Then I created 4 waypoints using path_corner and giving each of them targetnames wp1, wp2, wp3 and the last one wp4.

My script for this object is:


monsterscript
{
	spawn
	{
		wait 400
		trigger monsterscript movem
	}
	trigger movem
	{
		wm_announce "movem."
		wm_announce "2 wp1."
		gotomarker wp1 150
		wait 200
		wm_announce "2 wp2."
		gotomarker wp2 150
		wait 200
		wm_announce "2 wp3."
		gotomarker wp3 150
		wait 200
                wm_announce "2 wp4."
                gotomarker wp4 150
                wait 200
		trigger	monsterscript movem
	}
}

This is what happens when the map starts:

The object is moving, but it isn’t moving towards wp1, instead it moves at a constant direction out of the map and disappears. I have searched around on these forums and I have red some of the tutorials, searching for information about how to do things with radiant working with ET levels is quite a frustration since you have so much contradictiing information. Makes me almost feel like the old days when we were hacking the Amiga. Anyway this map is almost finished, if anyone has any tips about what to do, I’d be glad to hear it.


(nUllSkillZ) #2

Do you have an “origin”-brush included with your script-mover?
I’ve been reading that if you don’t include an “origin”-brush that there are strange behaviours.


(seven_dc) #3

I do not know direcly what is your problem but your gotomarkers like:

gotomarker wp3 150

do no wait mover to get there try adding wait after the command like:

gotomarker wp3 150 wait

that waits until the mover is there.

I think you should have target attrivute in your mover like:

target movem


Csi: Ny Forum


(bloodwire) #4

I think the origin brush was the real problem, but both posts helped. I don’t think I need attribute target movem in my mover since it is called from the script. Now I just need to make the object hurt players, add some sound and the level should be done.