PDA

View Full Version : Trouble with getting this cart to move.


Friske
07-26-2008, 12:14 PM
I'm having a little bit of trouble trying to get this to work...

I have the survivors in a zone where if at least one person is in that zone, a cart will move forward. If there's no one in the zone, the cart will stop. The problem is, it won't even budge! :mad:

I'm doing this with a trigger multiple, a math counter, a logic relay, and a func tracktrain.

My trigger multiple covers the zone with this I/O

OnStartTouch math_count1 SetHitMax
OnEndTouch math_count1 SetHitMin
OnTrigger math_count1 Enable Only Once

My math count is supposed to give instruction to 2 logic relays on whether to start of stop the cart.

Initial Value 0
Min. Legal Value 0
Max. Legal Value 1

I/O:

OnHitMax relay1 Trigger
OnHitMin relay2 Trigger

Logic relay 1 starts the cart. I/O:

On Trigger cart1 StartForward

Logic relay 2 stops the cart. I/O:

On Trigger cart1 Stop

I also see this error message in the console:

!! ERROR: bad input/output link:
!! math_counter(kitchencount,SetHitMax) doesn't match type from trigger_multiple(kitchenzone)

It should work, but what am I doing wrong? :huh:

Avager
07-26-2008, 12:54 PM
Why do you use math counter here ?

Just make it with normal trigger and when someone enters that zone make an out with "OnStartTouch" to the cart's IN with "MoveForward". when there is none in the zone make it "OnEndTouch" to the cart's IN with "Stop" or whatever .

I see that you are making a Payload thing from TF2...
So if you want to be only avaible for 1 team, use team_activator or whatever it is called (Make it same as trigger). It's same as Trigger thingy, but only for 1 team (Zombies or Humans)

Friske
07-26-2008, 01:13 PM
Um, I'll try it thanks.

And it's not a payload, it's supposed to be survivors in a kitchen holding the fort while a food cart moves through with food. I think it's more interesting than a message saying (Wait 5 Minutes for Generic Door 2 to open.)

Friske
07-26-2008, 01:58 PM
I feel so stupid, I forgot to set the func_tracktrain's next stop. It works at least.