How to link different classnames?


(MCEmperor) #1

Hi all,

How to link different classnames? For example, I want a misc_model to be a script_mover. But an object cannot have multiple classnames.
Does anyone have an idea? Suggestions will be welcome!

MC Emperor


(Yatta) #2

You have to attach the model to the script_mover with the script command “attatchtotrain name_of_mover distance_from_mover” (the “attaTch” typo is intended : its a hard coded typo :slight_smile: …) or “attach_to_tag name_of_mover name_of_tag” … search the forums about his one. :slight_smile:


(MCEmperor) #3

Thanks for the quick answer! So if I understand it right the name_of_mover is the targetname of the script_mover.

Thanks, I’ll test it.


(Flippy) #4

Yes, but the syntax is actually:

attachtotag targetname

Not attach_to_tag.

It is a bit more complicated than this though im afraid… You need a model with a tag, which is something that can be seen as some ‘hook’ you can attach other things to.
Have a look on Chruker’s website (google his name), I believe he has a dummy model with tags, which is actually an empty model, just some tags.

Also, do a search on tags or attachtotag, you will find what you need eventually.


(Yatta) #5

Oops, was so focused on explaining the typo in attatchtotrain that I misspelled attachtotag, sorry :oops:
thx Flippy


(MCEmperor) #6

http://games.chruker.dk/enemy_territory/md3ttd.php

OK, so the hook is not the origin-tag, but one of the tags beneath tag definitions?