Forged Alliance Forever Forged Alliance Forever Forums 2018-03-09T03:58:59+02:00 /feed.php?f=53&t=15971 2018-03-09T03:58:59+02:00 2018-03-09T03:58:59+02:00 /viewtopic.php?t=15971&p=161611#p161611 <![CDATA[Re: How to remove unit wreckages]]>
Capture.PNG

Statistics: Posted by EntropyWins — 09 Mar 2018, 03:58


]]>
2018-03-04T23:55:21+02:00 2018-03-04T23:55:21+02:00 /viewtopic.php?t=15971&p=161484#p161484 <![CDATA[How to remove unit wreckages]]>
Code:
local unit = CreateUnitHPR(whatever goes here)
unit:GetBlueprint().Wreckage = nil


That removes the wreckages of the unit, though unfortunately also of every other unit that has the same blueprint. Is there a way to remove the wreckage of a specific unit (in a map script)?

Statistics: Posted by EntropyWins — 04 Mar 2018, 23:55


]]>