So in my map, I have a bunch of Zerg beacons (small), and I try to replace them with Terran beacons (small).
So the problem is, for some reason, when the Zerg beacon gets replaced with the Terran beacon, the Terran beacon somehow dies, leaving a blank spot.
I changed the Zerg beacons into Probes and Terran beacons into SCVs to check (I wasn't sure if the actual beacon was dying. Never saw a beacon die before). So in this case, some of the SCVs died in this case.
Anybody know what might cause this?
Here is the part of the code that does the replacing.
If the new unit can't path properly at the replaced unit's location it will remove the first unit and fail to create the new unit. Try removing the old unit, then create the new unit with the ignore placement flag checked.
Well that did work, but still, it is weird that beacons some beacons would die and others didn't.
I guess I'll just use that method for now, thanks.
As a side note, to those who are curious, just had to have a point variable added in to get the point of the unit before removing and then creating the unit at that point.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So in my map, I have a bunch of Zerg beacons (small), and I try to replace them with Terran beacons (small). So the problem is, for some reason, when the Zerg beacon gets replaced with the Terran beacon, the Terran beacon somehow dies, leaving a blank spot.
I changed the Zerg beacons into Probes and Terran beacons into SCVs to check (I wasn't sure if the actual beacon was dying. Never saw a beacon die before). So in this case, some of the SCVs died in this case.
Anybody know what might cause this? Here is the part of the code that does the replacing.
If the new unit can't path properly at the replaced unit's location it will remove the first unit and fail to create the new unit. Try removing the old unit, then create the new unit with the ignore placement flag checked.
Well that did work, but still, it is weird that beacons some beacons would die and others didn't. I guess I'll just use that method for now, thanks.
As a side note, to those who are curious, just had to have a point variable added in to get the point of the unit before removing and then creating the unit at that point.