Author Topic: Train Theory  (Read 8946 times)

Then leave?

well if i left, than I wouldnt have any fun would i ? lol

How about a GUI that pops up when you get to a train station area?
Hell yeah.

Anyway, I think that there should be /trainstart, but like this:

Once the train gets to a station, it will stop. Then, once the player types /trainstart, it will go to the next one. Anyone like this idea?

Get a vehicle, a train I hope.


Then, make an event called setVehicleDirection
Place a brick with that event on the track.

Then you can make the train go right over a switch. It will be hard though :)

Get a vehicle, a train I hope.


Then, make an event called setVehicleDirection
Place a brick with that event on the track.

Then you can make the train go right over a switch. It will be hard though :)

Wow....simple.

This seems like the most lag-free solution, but overall bot-controlled trains would be pretty nice.

trolley works

but for some reason, it only seats one, but he can move around on the mountpoints freely

it would be nice if i could lay down track then have a train that stoped at a set
spot then sat there for 30 sec then started going :/

Theres a problem with your commands, there can't be spaces. Do /Trainstop or /Trainrun
Are you sick? They can, you can use the "cases".

They can be spaces it's just that you'll go into parameters....


function servercmdtrain(%a)
{
if(%train == "stop")
    blahlbalhfgjadkfdbsjdfvaejrv
}
« Last Edit: March 06, 2009, 06:21:33 PM by Kalphiter »

Tom

function servercmdtrain(%a)
{
if(train == "stop")
    blahlbalhfgjadkfdbsjdfvaejrv
}
:/
Code: [Select]
function servercmdtrain(%client, %train)
{
if(%train $= "stop")
    blahlbalhfgjadkfdbsjdfvaejrv
}
Don't try to explain if you don't know what you're doing.

:/
Code: [Select]
function servercmdtrain(%client, %train)
{
if(%train $= "stop")
    blahlbalhfgjadkfdbsjdfvaejrv
}
Don't try to explain if you don't know what you're doing.
You missed the point. It's not my fault Torque has to be different from all other programming languages.

Tom

No, its similar to most.  That even made too little sense to be pseudo code, Torque just isn't your thing.

No, its similar to most.  That even made too little sense to be pseudo code, Torque just isn't your thing.
You.

No, its similar to most.  That even made too little sense to be pseudo code, Torque just isn't your thing.
Well, the thing is, he was trying to explain to a guy how to do it, sure, he didn't do it 100% correct, but he did far better than I'd ever do.

No, its similar to most.

First of all, you can't just make up a variable in other languages.
It's "==" in other places.

And stuff like that are more like this

%client.servercmdblah

So %client would be already in the function.

Tom

Yes, but the basic idea. I could see how you could mess up the '==', but comparing 'train' without it being a arg.