SC2Mapster Forums

Development > Data

Missile coming straight down from the sky, firing a damage effect upon impact with ground?

  • 13 posts
    #1 Nov 24, 2012 at 00:48 UTC - 0 likes

    How would I come around making a missile get launched from the sky and hit the ground dealing damage (AoE damage)

    I want to make it take 2 seconds to land, but that's the mover I guess.

    #2 Nov 24, 2012 at 01:12 UTC - 0 likes

    I'm guessing you mean you want a missile to appear to just fall straight from the sky like a nuke? You'll just need to make a Create Persistent that creates the Launch Missile effect at an offset that is high up and make the launch missile launch from its target point to the target point of the persistent effect. You might also need to make it so that a pair of Site actors are created at the launch and impact points for the actor to properly function. For that check out how the site actor for the hellion attack is created.

    Assistant Team Leader of "Generic Code" and User of the All-Mighty Data Editor.

    My Amazing Cutscenes

    #3 Nov 24, 2012 at 13:35 UTC - 0 likes

    @Spoolofwhool: Go

    Hmm, I made the persistant, but I'm not very familiar with the create persistant effect. I made the missile launch effect, and I tried setting the periodic effect to 0,0,20 and make it launch a missile, but it launches from teh caster.

    How do I make the missile launch from the 0,0,20 offset and go to 0,0,0 offset (both offset from target point)

    NOTE: I did check out the hellion attack, but that does not explain much to me as far as I can see. I dont understand how it attaches to Site actor to the effect as a target point :/

    EDIT: @Doubleclick123: Go OMG! you're right! D:

    Last edited Nov 24, 2012 by Demtrod: 42 posts D:
    #4 Nov 24, 2012 at 14:00 UTC - 0 likes

    @Demtrod: Go

    I would love to help, but I don't have time to type stuff up. So all I want to say is... You have 42! posts as of November 24, 2012. Codgradulations. [42 Is The Answer to Life Universe and Everything]

    Last edited Nov 24, 2012 by Doubleclick123

    I'm......... back! Sort of. Once I get HoTS i'll be back... First I have to refresh myself.

    Also yeah I left and I came back in not too short of a time. But I got bored. Can you blame me?

    #5 Nov 24, 2012 at 19:58 UTC - 0 likes

    @Demtrod: Go

    It uses a Reference Set event to set the host of the beam inpact.

    And creates the Site actor at the periodic offset of the create persistent. Notice the use of the SOp Target Point Site operation.

    Last edited Nov 24, 2012 by DrSuperEvil
    #6 Nov 24, 2012 at 23:53 UTC - 0 likes

    So, for the Target - Launch Location use target point and for Target - Impact Location use target point with Target - Impact Location - Effect set to the persistent effect.

    So, I'm not sure that the Action actor for the missile will work if you don't have a site actor for the launch and impact points, but it might. The reason I mentioned the hellion Site actor is because it is created at the location of an effect using SOp Target Point. Copying off of it, you can make a pair of Site actors that are created at the launch and impact points of the Launch Missile effect, that can then be used to control the actor although as I stated, I'm not sure if the site actors are necessary.

    #7 Nov 25, 2012 at 06:07 UTC - 0 likes

    @Spoolofwhool: Go

    The SOp Target Point site operation is in that it allows attachment to the target point of an effect.

    #8 Nov 25, 2012 at 11:07 UTC - 0 likes

    Hmmm - I cant seem to figure this out. I'm sorry for being a noob, I've never actually worked with the persistant effect :|

    I did set the Target - Launch Location to target point, and the Target - Impact Location to target, and the effect to my persistant effect.

    The Persistant Effect got it's Periodic Offset set to (0,0,20)(0,0,0), Initial effect set to my missile effect, and the Initial Offset set to (0,0,20).

    The missile is launced from the target point, but it's from (0,0,0) to (0,0,0).

    I cant figure out how to set up the site actor, as I've never used it before, could you please explain it step by step?

    Last edited Nov 25, 2012 by Demtrod
    #9 Nov 25, 2012 at 19:33 UTC - 0 likes

    You cannot offset Site actors directly so need to create a Model type actor at the offset location which you attach your site to. Then set up the Action actor to use the sites and enable the flags forcing it to use the sites.

    #10 Nov 27, 2012 at 13:33 UTC - 1 like

    Is this what are you looking for? I posted this before long time ago in meteor shower topic. This shit works without action and site actors somehow ._.

    Last edited Nov 27, 2012 by abvdzh
    Name Size MD5
    meteor_shower_example.SC2Map 171.3 KiB 397c50b7ce6f...
    #11 Nov 27, 2012 at 18:51 UTC - 0 likes

    @abvdzh: Go

    I copied over your effect, and tried to set my persistants to the same as yours, but I couldnt get it to work. So I ended up just completely copying your spell, and modifying it from there :) thank you.

    EDIT: I think I figured out what caused it. For some reason, I cant make a missile launch from a 0,0,Z offset, the X value has to be something else than 0.

    Last edited Nov 27, 2012 by Demtrod
    #12 Nov 27, 2012 at 19:22 UTC - 1 like

    Probably has to do with the mover using an adaptive hit test that can work in 2d.

    #13 Nov 28, 2012 at 18:18 UTC - 0 likes

    If you make the mover have a 3d arrival test it works with an offset of 0,0,Z

  • 13 posts

You must login to post a comment. Don't have an account? Register to get one!