Question about variables, values, and scripting.
Quote from Goldenknighttim on February 22, 2014, 10:59 pmI've got an idea on where to start with that. I just want to finish what I'm already working on first. I tried using addoutput with a parameter of: "target Track_1x2"(Track_1x2 is what I want the next stop target to be). It's not working. Do path_tracks have something against addoutput? I feel like I'm missing something.
I've got an idea on where to start with that. I just want to finish what I'm already working on first. I tried using addoutput with a parameter of: "target Track_1x2"(Track_1x2 is what I want the next stop target to be). It's not working. Do path_tracks have something against addoutput? I feel like I'm missing something.
Quote from RustyDios on February 23, 2014, 8:48 amSo you have something (a train) moving along a path_track and you want to dynamically (ie: based on what's going on in your map at that moment) change the direction the train goes in (the next stop target)?
If I'm getting this right you should be able to use ToggleAlternatePath and EnableAlternatePath to switch to new route. And use a filtered trigger to send these inputs to your path_track ...
Alternatively if you want more than two directions why not play with the parenting options? If your platforms are parented to the train, have multiple paths and trains and "on pass" set the platform to parent the next train... maybe some logic_case/branches to set an AddOutput>OnPass>SetParent>Platform>New Train on the path track kinda stuff .... not sure how this would work out but it might be a good start to solve your problem using a hammer based solution instead of scripting.. because I've got no experience with squirrel so can't help you there. ...
So you have something (a train) moving along a path_track and you want to dynamically (ie: based on what's going on in your map at that moment) change the direction the train goes in (the next stop target)?
If I'm getting this right you should be able to use ToggleAlternatePath and EnableAlternatePath to switch to new route. And use a filtered trigger to send these inputs to your path_track ...
Alternatively if you want more than two directions why not play with the parenting options? If your platforms are parented to the train, have multiple paths and trains and "on pass" set the platform to parent the next train... maybe some logic_case/branches to set an AddOutput>OnPass>SetParent>Platform>New Train on the path track kinda stuff .... not sure how this would work out but it might be a good start to solve your problem using a hammer based solution instead of scripting.. because I've got no experience with squirrel so can't help you there. ...
Quote from Goldenknighttim on February 23, 2014, 10:53 amIn my experience, parenting path_tracks has always lead to crashes. I'd rather not open that can of worms. I am trying to set up up to 4 alternate paths per track. Putting 4 paths in each spot would work, but I would prefer not to use so many entities. Ill go with that though if I can't find an easier way.
In my experience, parenting path_tracks has always lead to crashes. I'd rather not open that can of worms. I am trying to set up up to 4 alternate paths per track. Putting 4 paths in each spot would work, but I would prefer not to use so many entities. Ill go with that though if I can't find an easier way.
Quote from FelixGriffin on February 23, 2014, 11:11 amYou'd only need three.
- Code: Select all
|
1
/
2 3
/ /
| | | |
You'd only need three.
- Code: Select all
|
1
/
2 3
/ /
| | | |
Quote from Goldenknighttim on February 23, 2014, 11:26 amFelixGriffin wrote:You'd only need three.
- Code: Select all
|
1
/
2 3
/ /
| | | |oh, That would be a lot more effective than what I was imagining.
- Code: Select all
|
1
/
2 3
/ /
| | | |
oh, That would be a lot more effective than what I was imagining.