• 0

    posted a message on aoe knockback help

    I've been having the same issue with Apply Force; no matter how much I apply or how often I apply it, the units get knocked back at an absolutely pathetic speed. Which speed do you increase to get this to work? I would assume it would be "Movement Speed Maximum," but the editor doesn't let me increase that beyond the default value of 160.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Ability Targeting Dead Units

    SC2 actually does support "dead" units but it's highly finnicky (you have to get your data exactly right) and also quite buggy. (but there are workarounds)

    Things to watch for:
    - Unit/Stats/Death Time has to be set to something. Setting it to -1.0 means the unit will stay dead for ever. 0.0 means the unit will instantly disappear when it dies. X means the unit will stay around for X seconds.

    - Just because the unit stays around doesn't mean the actor will. For some actors, you have to modify the actor events, such as by having the animations pause sometime during the death phase, in order for a corpse to stay on the board. If the model doesn't have a "dead" animation, you will need to make some fairly extensive modifications to the actor.

    - Dead units can't be selected/targeted even when they do exist as units. This appears to be hard coded into SC2 itself. Even abilities whose data is specifically set to target dead units can't target dead units. This is dumb but all my testing indicates that's the way it is.

    - There is a workaround, though; if you want an ability that does something with dead units, have that ability target a point instead of a unit. Then use a trigger that fires on that ability, and a unit group search like (All units within 2.0 meters of target point matching conditions: Dead) to find the dead unit(s) and act on them.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Model from unit?

    The basic scenario is that I have a unit and I want to get the string/game link for its model.

    My idea was as follows: get the actor from the unit, then get the actor's ID, then use Catalog to get the "Model" field from the actor object.

    The problem I have is getting the actor's ID. I have the actual actor object using Get Actor for Unit, but I can't seem to find any way to get the ID. Is this possible, or is there a better overall approach?

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.