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.
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.
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.
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.
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.
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.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
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.
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.
As replied on your parallel thread do you want it to be a targetable orbiting unit or just a visual?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Just visual but when the medic attacks(with no animation) i want a beam to go from the SV to the target
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.
How do i do this exactly?
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 : /
Have you made a custom weapon for the Medic hero?
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.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
I got it working thanks guys