I got it working(I even set the Target: Launch Offset back to 0,0,0 and it still correctly launches from the correct AttachPoint. I suspect in my desperation I changed an old setting somewhere that fix it... )...
But now I have a new problem.
The missile will not move to the random points I set up in the Create Persistant Effects ...
They all just go straight to the center of the target.
I can see surrounding units occasionally take damage tho, so I know that part is working.
I just need the missiles to move to the Periodic Offsets I have set up in the Create Persistant Effects.
Thanks for your assistance btw. Even if Im not catching on so well its nice to have some help. :)
EDIT: Ok! I think I got everything working.
Turns out I needed to set the Launch Effect token in the Attack Action to match the Launch Missile effect not the First Effect in the chain.
Look at the flamethrower weapon of the hellion. If you start doing more complex abilities they can be useful. Also they can have their hosting changed while the missile is mid-flight.
In the Attack Action, Ive set Launch Attachment Query to the Overhead Attachment Point, via an Attachment Method.
I know its the right attachment point, because the correct Launch Assets(muzzle flare) are being played at the correct location.
But the Missile itself is being launched from what appears to be the Center Attachment Point.
Does anyone know how to get the missile to launch from the same Attachment Point, as the Launch Assets?
Make a custom Site type actor and use that as the launch site. You may need to set the Launch Force Site flag under the Actor: Action Flags field.
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
Where in the Site Actor do I set the Attachment Points?
Well after testing and trying things, the custom site actor has not changed anything, and the Launch Force Site flag didn't do it either.
In the interest of providing as much info as I can the weapon/effect chain is:
Weapon (Type: Legacy, Parent: CWeaponLegacy)
>Effect1 (Type: Search Area, Parent: Default Effect (CEffectEnumArea))
->Effect2 (Type: Create Persistant, Parent: Default Effect (CEffectCreatePersistant))
-->Effect3 (Type: Create Persistant, Parent: Default Effect (CEffectCreatePersistant))
--->Effect4 (Type: Create Persistant, Parent: Default Effect (CEffectCreatePersistant))
---->Effect5 (Type: Launch Missile, Parent: Default Effect (CEffectLaunchMissile))
----->Effect6 (Type: Search Area, Parent: Default Effect (CEffectEnumArea))
------>Effect7 (Type: Damage, Parent: DU_WEAP_MISSILE)
If you need any specific information I can provide.
I got the Missile to attach to the Attachment Point, but it seems weird HOW I did.
All I did was set Target: Launch Offset to 0,0,2.
(it was default 0,0,0)
Is there some reason why that would work?
You are setting the actual launch point of the missile relative to the centre and not just the visuals.
With Site actors you must use SOp(Attachment) actors under the SOps for hosting. Only if using a custom launch site is the flag required.
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
Im not actually using a Site actor.
Well besides the defaults in the Attack Action.
I got it working(I even set the Target: Launch Offset back to 0,0,0 and it still correctly launches from the correct AttachPoint. I suspect in my desperation I changed an old setting somewhere that fix it... )...
But now I have a new problem.
The missile will not move to the random points I set up in the Create Persistant Effects ...
They all just go straight to the center of the target.
I can see surrounding units occasionally take damage tho, so I know that part is working.
I just need the missiles to move to the Periodic Offsets I have set up in the Create Persistant Effects.
Thanks for your assistance btw. Even if Im not catching on so well its nice to have some help. :)
EDIT:
Ok! I think I got everything working.
Turns out I needed to set the Launch Effect token in the Attack Action to match the Launch Missile effect not the First Effect in the chain.
I got everything set the way I wanted, and was able to successfully replicate it to another unit type.
I think it turned out nice:
Thanks for putting up with me DrSuperEvil.
Well I still say you should get used to using Site type 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
Is there a specific advantage to Site type actors?
Look at the flamethrower weapon of the hellion. If you start doing more complex abilities they can be useful. Also they can have their hosting changed while the missile is mid-flight.
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