SC2Mapster Forums

Development > Data

(Solved)Need Help With Attaching Units to Units

  • 11 posts
    #1 Dec 02, 2012 at 21:44 UTC - 0 likes

    Hi there,

    I am making an RPG. For one the the heroes I want to use the medic model. Because this unit has no attack animation, my goal is the make a tiny science vessel float around the medic and shoot a beam when the medic attacks. To be clear the science vessel would be purely cosmetic. The medic would be the one with the weapon equipt. any help would be greath thanks.

    #2 Dec 02, 2012 at 22:51 UTC - 0 likes

    As replied on your parallel thread do you want it to be a targetable orbiting unit or just a visual?

    Last edited Dec 02, 2012 by DrSuperEvil
    #3 Dec 02, 2012 at 22:57 UTC - 0 likes

    Just visual but when the medic attacks(with no animation) i want a beam to go from the SV to the target

    #4 Dec 02, 2012 at 23:28 UTC - 0 likes

    You could give the medic hero a turret under Combat - Turrets and then you can attach a Model Attachement actor using a science vessel model and then connect the turret to the science vessel using a Turret actor. This way, the science vessel will rotate with the turret. The only problem with this method is that the science vessel will not face the target and will simply continue turning, but there is another, more lenghty way of making that work.

    To make the science vessel rotate and face like a turret, you would have to give the medic hero turret along with its weapon, and have the turret have low arc. Then you would have to add a hidden actor that has a Turret Z attachement point, and then attach the science vessel to it. A Turret actor would have to be attached to the hidden actor to make it rotate.

    No matter what method you use, in order for the medic's weapon to fire from the science vessel, you need to add a Site actor to the science vessel that will then be used in the Action actor of the medic's weapon.

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

    My Amazing Cutscenes

    #5 Dec 02, 2012 at 23:45 UTC - 0 likes
    Quote from Spoolofwhool: Go

    No matter what method you use, in order for the medic's weapon to fire from the science vessel, you need to add a Site actor to the science vessel that will then be used in the Action actor of the medic's weapon.

    How do i do this exactly?

    #6 Dec 03, 2012 at 01:28 UTC - 0 likes

    Make a Site actor and set the Hosting - Host + field to your science vessel actor. Then an Actor Creation event to Events - Events + and under it add the Create action.

    For the weapon effect to fire from the Site actor, add it to the Target - Launch Site of your weapon's Action actor and enable the Launch Force Site Flag under Actor - Action Flags.

    #7 Dec 03, 2012 at 02:21 UTC - 0 likes
    Quote from Spoolofwhool: Go

    Make a Site actor and set the Hosting - Host + field to your science vessel actor. Then an Actor Creation event to Events - Events + and under it add the Create action.

    For the weapon effect to fire from the Site actor, add it to the Target - Launch Site of your weapon's Action actor and enable the Launch Force Site Flag under Actor - Action Flags.

    I cant find my weapons Action actor : /

    #8 Dec 03, 2012 at 06:21 UTC - 0 likes

    Have you made a custom weapon for the Medic hero?

    #9 Dec 03, 2012 at 22:14 UTC - 0 likes

    Use a SOp (Rotator) to do the turning and have the science vessel attached using a SOp (Local Offset) to do the turning motion. Host a Site actor on the science vessel then read the wiki on Action actors.

    #10 Dec 03, 2012 at 22:43 UTC - 0 likes

    I made a hero unit awhile back for a map I was working on that functioned almost exactly like this.

    What I did was... Gave it a hanger and an interceptor(used a phoenix model for mine). Told it to have a super short leash range, but a normal size weapon range, then made sure it couldn't return to the "carrier" which was a high templar. Worked great, main unit got kill credit, it faced the targets, no hosting or site op's and attacked stuff when it got in range or was targeted by the high templar.

    #11 Dec 04, 2012 at 01:53 UTC - 0 likes

    I got it working thanks guys

    Last edited Dec 04, 2012 by Sushi5000
  • 11 posts

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