Attach script_mover to script_mover?


(Xterm1n8or) #1

Hi,

Is it possible to attach a script_mover to another script_mover?

I have a script_mover (a train) and another (a lever), which at the moment is on the ground. But i would like to have this lever on the train itself.

I’ve tried a few things without success and i am unable to find an example of this.

Anyone have any ideas?

Many thanks :slight_smile:


(murka) #2

You can attach it and make it rotate, but not move through moving paths(spline points/path corners can’t be moved).
Just make a dummy tagmodel for your train which holds the tag for the lever(and an origin tag). The train itself should be attachtotagged to the dummy tagmodel and the dummy should me moved through splines. Now just attach the lever on the tag and use faceangles to rotate.


(Xterm1n8or) #3

Hi,

I think i understand. At the moment, my lever has 2 path corners; 1 up (forward) and the other down (reverse). The path corners are unable to move, so it’s back to this dummy thing again (I’ve had problems with this before).

So, i make a dummy model with 2 tags; 1 origin and 1 for the lever. I attach my brush model script_mover (the train) to the dummy at the origin tag, and attach the other brush model script_mover (the lever) to the other tag and use faceangles to make the lever move?

I’ll have to have a go at this tomorrow because i’m off to work now.

Thanks for your help :slight_smile:


(murka) #4

Only way to get movements other than rotation in attachtotag is to make it an animation in the model, but it’s somewhat easier to just use a rotating lever.