I've been trying (and failing) to make a weapon fire from a model attached to another model.
Gun Model -hosted on-> Invisible Model (has Turret) -hosted on-> Unit
I know I need an Action Actor and a Site Actor, but I must be doing something wrong since the weapon continues to fire from the Unit's origin point. The action uses the Site as a Launch Site, and the Site uses SOpAttachWeapon as it's Site Operations+. The Site has events that create/destroy on Unit Birth/Death and the Action has create on damage Effect. The Gun Model (Korhal Cannon) has a Weapon attachment, I checked. So I'm guessing it's the intermediary Invisible Model that's the root of the problem?
PS: if I want to make an artillery weapon with an arcing projectile, what base game example should I look at for reference?
PS2: Could someone tell me how to make the Gun Model face a 225 degree when the Unit morphs? I tried Set Facing on morph start, but it doesn't really work. It resets after the unit morphs back (which is when the Turret is enabled), and it doesn't turn either, it just resets. I tried looking at the Siege Tank, but that one just destroys the turret every time. Doesn't work for what I wanna do.
Sounds like you're having the same problem I was. I ended up putting it away to maybe one day later revisit. But maybe the replies to it will help you.
Do you want a true ballistic arc or just a curved homing missile? Both are controlled via the Mover data type set on the Missile Unit. The ballistic type creates a true arc with a fixed ground impact point, for the homing variant you want a Throw->Guided mover phase pair with a long blend time. Look at the tutorials/wiki for basic reference.
I don't know anything using the ballistic arc driver, but my go-to source for homing missiles is the Phoenix weapon. That model is also good for tracing out trajectories because it has a long tail and no distracting sparkle/explosion effects.
Is Launch Missile an event+ thing? I can't find it.
The Site is being hosted on the Model Actor (the cannon) on the Host+ field, and the Site Operations+ is SOpAttachWeapon. The Action is using the Site as it's Launch Site. The cannon is hosted on the Invisible Model.
The Launch Missile is an effect type which many people have before their damage effect so you can also use that to create your Action actor. If you have a missile launch before the damage effect that might explain why your hosting is not working.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
The action actor seems to be controling the impact effect. When I change it's creation event to Effect.LaunchMissile.Start the impact FX happens the second the missile launches, tho the damage only applies once the projectile reaches the target. The launch location remains unchanged. I'm particularly confused by this because the Action actor has Combat: Launch Site, which has my custom Site actor. The Site actor has the cannon model as Host and it uses the cannon's weapon attachment via Site Operations (SOpAttachWeapon).
I tried changing the events of the Site itself to create at Effect.LaunchMissile.Start (or Effect.LaunchMissile.Launch) but there was no change.
Depends how you are creating you impact effect. A lot of missile effects have a separate Model actor for the impact visual. The fact it is being created on the hosting unit sounds like a SOp issue or hosting issue. Try comparing it to the battlecruiser Action actor. Effect trees and visuals are not linked mechanically. The Impact Site is what determines the impact visual while the launch visual is associated with the Launch Site.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I've been trying (and failing) to make a weapon fire from a model attached to another model.
Gun Model -hosted on-> Invisible Model (has Turret) -hosted on-> Unit
I know I need an Action Actor and a Site Actor, but I must be doing something wrong since the weapon continues to fire from the Unit's origin point. The action uses the Site as a Launch Site, and the Site uses SOpAttachWeapon as it's Site Operations+. The Site has events that create/destroy on Unit Birth/Death and the Action has create on damage Effect. The Gun Model (Korhal Cannon) has a Weapon attachment, I checked. So I'm guessing it's the intermediary Invisible Model that's the root of the problem?
PS: if I want to make an artillery weapon with an arcing projectile, what base game example should I look at for reference?
PS2: Could someone tell me how to make the Gun Model face a 225 degree when the Unit morphs? I tried Set Facing on morph start, but it doesn't really work. It resets after the unit morphs back (which is when the Turret is enabled), and it doesn't turn either, it just resets. I tried looking at the Siege Tank, but that one just destroys the turret every time. Doesn't work for what I wanna do.
Sounds like you're having the same problem I was. I ended up putting it away to maybe one day later revisit. But maybe the replies to it will help you.
http://www.sc2mapster.com/forums/development/data/73028-attachments-help-with-launch-site/#p1
@PS:
Do you want a true ballistic arc or just a curved homing missile? Both are controlled via the Mover data type set on the Missile Unit. The ballistic type creates a true arc with a fixed ground impact point, for the homing variant you want a Throw->Guided mover phase pair with a long blend time. Look at the tutorials/wiki for basic reference.
I don't know anything using the ballistic arc driver, but my go-to source for homing missiles is the Phoenix weapon. That model is also good for tracing out trajectories because it has a long tail and no distracting sparkle/explosion effects.
@Spellbound7: Go
Have the action be created by the Launch Missile ability when it starts.
Is your site being hosted on your attachment under the hosting fields?
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
Is Launch Missile an event+ thing? I can't find it.
The Site is being hosted on the Model Actor (the cannon) on the Host+ field, and the Site Operations+ is SOpAttachWeapon. The Action is using the Site as it's Launch Site. The cannon is hosted on the Invisible Model.
The Launch Missile is an effect type which many people have before their damage effect so you can also use that to create your Action actor. If you have a missile launch before the damage effect that might explain why your hosting is not working.
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
The action actor seems to be controling the impact effect. When I change it's creation event to Effect.LaunchMissile.Start the impact FX happens the second the missile launches, tho the damage only applies once the projectile reaches the target. The launch location remains unchanged. I'm particularly confused by this because the Action actor has Combat: Launch Site, which has my custom Site actor. The Site actor has the cannon model as Host and it uses the cannon's weapon attachment via Site Operations (SOpAttachWeapon).
I tried changing the events of the Site itself to create at Effect.LaunchMissile.Start (or Effect.LaunchMissile.Launch) but there was no change.
Depends how you are creating you impact effect. A lot of missile effects have a separate Model actor for the impact visual. The fact it is being created on the hosting unit sounds like a SOp issue or hosting issue. Try comparing it to the battlecruiser Action actor. Effect trees and visuals are not linked mechanically. The Impact Site is what determines the impact visual while the launch visual is associated with the Launch Site.
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