How to remove unit wreckages

Interesting mapping tools and mapping help.

Moderator: Morax

How to remove unit wreckages

Postby EntropyWins » 04 Mar 2018, 23:55

I would like to remove the wreckages of some specific units. Currently I am using this code:

Code: Select all
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)?
EntropyWins
Avatar-of-War
 
Posts: 113
Joined: 02 Oct 2016, 20:26
Has liked: 18 times
Been liked: 4 times
FAF User Name: EntropyWins

Re: How to remove unit wreckages

Postby EntropyWins » 09 Mar 2018, 03:58

Solved:

Capture.PNG
Capture.PNG (9.46 KiB) Viewed 842 times
EntropyWins
Avatar-of-War
 
Posts: 113
Joined: 02 Oct 2016, 20:26
Has liked: 18 times
Been liked: 4 times
FAF User Name: EntropyWins


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest