Help with accums please


(Higgins) #1

Ok, I have here a script, that moves a script_mover in my map at map start.

oil
{
	spawn
	{
		wait 300

		followspline 0 spl_01 100 length 32 wait 

		trigger self tank_path
	}

	trigger tank_path
	{
		followspline 0 spl_01 100 wait length 50
		followspline 0 spl_02 100 wait length 50
		followspline 0 spl_03 100 wait length 50
		followspline 0 spl_04 100 wait length 50
		followspline 0 spl_05 100 wait length 50
		followspline 0 spl_06 100 wait length 50
		followspline 0 spl_07 100 wait length 50
	}
}

I will be adding more splines for my map, this one was just a test to see if t did move, and it did.

Let me explain. I will have 2 team doors, that will be targeted at a target_script_trigger, which I think should trigger a script like an accum to tell it to change its state.

Well, I will have two team doors, the size of a button. With targetnames like allies_button and axis_button. These doors would have to belong to one team only.

When a team uses its button, say the axis press theirs, then the script_mover will start its path along the splines. Once allies press their button, the mover stops where it is.

Can some one edit my script to show me what I need to do, by adding the accums and the bits where the team door will be pressed.

Thanks


(FireFly) #2

Correct me if i’m wrong but in your map you have a script_mover (a tank,train,truck,vehicle) that moves from point A to point B…
Both teams have a button they can push: when axis push theirs the script_mover (vehicle) starts moving. when allies push their button the scriptmover stops.
Both buttons are ‘team only’
So , for example, when an allied player pushes the ‘axis’ button, nothing happens…?


(EB) #3

Shorthanded: make the script accordingly, make a kill or disable trigger and have the opposite teams button trigger the other teams disable scripting.

Use other map scripts (goldrush) for examples and just have the disable feature as stated above.


(Higgins) #4

FireFly your right. I want the mover to move when axis press/open their little team door, and when allies press theirs the mover stops at what ever spline it isat or going to.

EB, Would the kill trigger need accums? and will it explain in gold rush how to use it, I cant make hard scripts, only simple ones, or ones that have been made :slight_smile:


(EB) #5

I am getting really angry…I have posted a reply 3 times but none of the replies are showing as I am deverted to the log-in screen each time. Not to mention, once I re-log-in, my post still does not appear, I will be surprised if this oine shows. grrrrr


(EB) #6

******Of course the one that I don’t want to show up, shows up…luck of the Irish I guess. Anyways…

I had a couple of paragraphs typed before, but I am not up to typing so much, so I will shorthand this, sorry buddy.

The tank scripting would contain most of what you would need, I feel it may be too tough for you to get it solved soon while learning along with the curve. I suggest using a scriptmover using paths, Nibsworld has a good tutorial on this. You could use one switch to move it one way at normal speed and the other switch to reverse it at very nominal speed maybe 1 or .1 . This would make it appear to “STOP” but not really. Here is an elevator.map and script HERE. You will need to adjust speeds and convert a little maybe, but for the most part it could do the same job until you get more comfortable with scripting using accums. Ifurita’s scripting tutorialHERE for you to learn more.

-Cheers