I want to make player able to create tanks from parts - for example select hull size, engine and weapon. Is there easy way, to make it works? For example there can be 3 premade units - hulls (small, medium, large), with turrets added, when created. But how to achive it? I mean - how to apply that changes to unit.
Actor events support this, and is how some units already gain different appearances when certain upgrades are researched (marine shields for example). Once you understand actors and attachment points, doing something like this is pretty easy.
That thread has info on how to remove turrets from units, and I compiled a list of the units that have a turret that can be removed and still be 'Useable'.
Then you can just attach whatever you want wherever you want.
Actually you can almost reattach the turret to other stuff using the Attachment Set Position actor event if you set it to a rapidly repeating timer. Downside is that so far I have only found how to attach it to the main unit and not any attachments attached onto the unit.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I want to make player able to create tanks from parts - for example select hull size, engine and weapon. Is there easy way, to make it works? For example there can be 3 premade units - hulls (small, medium, large), with turrets added, when created. But how to achive it? I mean - how to apply that changes to unit.
@ShadowDancer93: Go
Actor events support this, and is how some units already gain different appearances when certain upgrades are researched (marine shields for example). Once you understand actors and attachment points, doing something like this is pretty easy.
Ya, heard about that, but it's possible to take turret from siege tank, and apply it to my unit?
And for what terms exacly shall I search? Maybe you know some good tutorials for begginers?
@ShadowDancer93: Go
Unfortunately you cannot take the turret from a tank and apply it onto another unit.
However, you CAN remove the Turret from the tank and then you are left with the base tank.
http://forums.sc2mapster.com/development/data/18329-weekly-data-exercise-10-all-turrets-active-commander/?page=4#posts
That thread has info on how to remove turrets from units, and I compiled a list of the units that have a turret that can be removed and still be 'Useable'.
Then you can just attach whatever you want wherever you want.
Actually you can almost reattach the turret to other stuff using the Attachment Set Position actor event if you set it to a rapidly repeating timer. Downside is that so far I have only found how to attach it to the main unit and not any attachments attached onto the unit.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg