I don't think there is a direct way to do it other than setting model variation upon units creation (through triggers) and saving it in variables. You could tells us what you need it for and we could think of some workarounds.
P.S. "InsertName_IsOP"" is a generic troll acc. name (he comes here from time to time) whose all posts will probably disappear once sixen comes back and uses his "erase" button (yeah, his mentioned funct. doesn't exist).
Thank you for confirming what i thought. Now it looks like i was talking to my self wooot!
i am creating a system that can recreate/generate terrain with triggers after the game started. As in you create the terrain, then the map generates the code to copy/paste into another map.
All doodads are actually units (in the terrain being cloned, not the generated) So in order to clone it perfectly you need the model variation.
example (the trees with health bars are of course the units, and the trees with out ones were generated by the code) These are just old test images
Is there any way to get a units model variation and store it in an int?
I can find function to set a units model variation, but none to retrieve it.
maybe i am blind, but that function doesn't exist
Unless its in some add on?
http://www.sc2mapster.com/wiki/galaxy/all-functions/#w-galaxy-triggers-category-unit-unit
ya i do, because it doesn't exist?
i = GetUnitModelVariation(u); = error
Could you prove that it exists or how it is used?
I can't find it either.
I don't think there is a direct way to do it other than setting model variation upon units creation (through triggers) and saving it in variables. You could tells us what you need it for and we could think of some workarounds.
P.S. "InsertName_IsOP"" is a generic troll acc. name (he comes here from time to time) whose all posts will probably disappear once sixen comes back and uses his "erase" button (yeah, his mentioned funct. doesn't exist).
Ive looked and I agree there is no such thing, this guy has been trolling alot of posts and asking to be a mod lol
Thank you for confirming what i thought. Now it looks like i was talking to my self wooot!
i am creating a system that can recreate/generate terrain with triggers after the game started. As in you create the terrain, then the map generates the code to copy/paste into another map.
All doodads are actually units (in the terrain being cloned, not the generated) So in order to clone it perfectly you need the model variation.
example (the trees with health bars are of course the units, and the trees with out ones were generated by the code) These are just old test images
Does mapster not have spoiler boxs?
As mentioned before, your best bet would be to set the variations to a specific value on creation and store it separately.
No. You can try to use Markdown to create a spoiler box in HTML, like described here