So I want to preview several different models in a map, and I figure the easiest way to do that is via a few triggers. I have all of the models I want set up in ModelData.xml already and I have a basic trigger set up that triggers on a player typing '.model X' and puts the 'X' in a string variable by itself.
The problem is I'm pretty confused on what actions to use here. There were a lot of options like Attach Actor to Actor and Attach Model to Unit (but does this replace the existing unit's model? I don't want them stacked on top of each other). Does anyone have some suggestions how to achieve what I'm aiming for?
One last thing - I'm assuming that the ids from in ModelData.xml are the source of the strings I would need to enter in text as 'X' (and not the actual filenames), correct?
Figured it out after asking in IRC. If anyone else stumbles across this, you want to use "Send Actor Message" with the "ModelSwap" message. Leave the variation alone (in fact, if you're doing it in Galaxy script, remove the part after the model name entirely if you want).
Cheers
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I want to preview several different models in a map, and I figure the easiest way to do that is via a few triggers. I have all of the models I want set up in ModelData.xml already and I have a basic trigger set up that triggers on a player typing '.model X' and puts the 'X' in a string variable by itself.
The problem is I'm pretty confused on what actions to use here. There were a lot of options like Attach Actor to Actor and Attach Model to Unit (but does this replace the existing unit's model? I don't want them stacked on top of each other). Does anyone have some suggestions how to achieve what I'm aiming for?
One last thing - I'm assuming that the ids from in ModelData.xml are the source of the strings I would need to enter in text as 'X' (and not the actual filenames), correct?
Thanks!
@MMOSimca: Go
Anyone have ideas on how to best do this? Ideally I'd like to take one unit and change or 'morph' its model into something else with text commands.
Why not use the cutscene module as a viewer?
@MoDTassadar: Go
It needs to be part of a live map; something I can share easily over Battle.net.
@MMOSimca: Go
Figured it out after asking in IRC. If anyone else stumbles across this, you want to use "Send Actor Message" with the "ModelSwap" message. Leave the variation alone (in fact, if you're doing it in Galaxy script, remove the part after the model name entirely if you want).
Cheers