I tried to do it myself, I really did. But it's too complicated for me. I can't figure it out, so I'd like it if someone could tell me how I'd do it.
I want to make my unit have a weapon that does the following:
Creates an orb (Photon Cannon projectile) at a random angle from the weapon-user a short distance from him (very short, but far enough that they're not touching) that increases in size until it's at full size over 1.5 seconds then launches at the enemy.
The size increase is easy, but it's getting the orb to spawn and fire that I'm having trouble with. I'd appreciate it if someone gave me a detailed guide to doing this. Thanks for considering.
Use an Effect - Target ability that uses a Create Persistent effect to use a Create Unit effect at a semi random offset (look at the persistent effects flags). The units then use a Launch Missile effect after a delay caused by another Create Persistent (look at colossus or ghost nuke for examples) and the launch missile effect lacks an ammo unit (like brood lord escorts) so it converts the unit into a missile that on impact does whatever you want on impact.
Got the projectile to spawn, launch missile after delay, and die. I'm having problems with the random offset thing, though. Can someone tell me how precisely to do this?
There are multiple ways to do this: You can use a Persistent effect, and use the Random Offset flag, which will select a random offset of the list of offsets you enter in the Periodic Offsets field.
Or you use a Random Point in Circle Site Operation actor; however I never really worked with them; they might produce unexpected results.
Is the Create Unit effect set to spawn the unit at the target point? Maybe it is set to source point or target unit (which would, under circumstances, pick the caster)
I had it at Caster Point. Putting it at Target Point make it spawn in the random offset, but it's spawning at the target. I want it to spawn at the caster.
I tried to do it myself, I really did. But it's too complicated for me. I can't figure it out, so I'd like it if someone could tell me how I'd do it.
I want to make my unit have a weapon that does the following:
Creates an orb (Photon Cannon projectile) at a random angle from the weapon-user a short distance from him (very short, but far enough that they're not touching) that increases in size until it's at full size over 1.5 seconds then launches at the enemy.
The size increase is easy, but it's getting the orb to spawn and fire that I'm having trouble with. I'd appreciate it if someone gave me a detailed guide to doing this. Thanks for considering.
@Alzarath: Go
look at the yamato cannon maybe? it does something similar, or at least that's what it looks like.
@peabrain13: Go
No, not even close.
Use an Effect - Target ability that uses a Create Persistent effect to use a Create Unit effect at a semi random offset (look at the persistent effects flags). The units then use a Launch Missile effect after a delay caused by another Create Persistent (look at colossus or ghost nuke for examples) and the launch missile effect lacks an ammo unit (like brood lord escorts) so it converts the unit into a missile that on impact does whatever you want on impact.
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
How do I get the units to use a Launch Missile effect?
Use the Spawn Effect of the Create Unit effects and set the target of the launch to the target of the initial effect.
Yamato does exactly this. Don't ignore advice. You need to alter the animation to get the desired effect, but the base components are exactly there.
Model anim continuous -> abil prep start -> abil prep end.
Got the projectile to spawn, launch missile after delay, and die. I'm having problems with the random offset thing, though. Can someone tell me how precisely to do this?
There are multiple ways to do this: You can use a Persistent effect, and use the Random Offset flag, which will select a random offset of the list of offsets you enter in the Periodic Offsets field.
Or you use a Random Point in Circle Site Operation actor; however I never really worked with them; they might produce unexpected results.
@Kueken531: Go
I've been trying the first option.
That's all I got. What I've been told, I'd assume that's all I need, but it's still only spawning it directly on the caster.
Is the Create Unit effect set to spawn the unit at the target point? Maybe it is set to source point or target unit (which would, under circumstances, pick the caster)
@Kueken531: Go
I had it at Caster Point. Putting it at Target Point make it spawn in the random offset, but it's spawning at the target. I want it to spawn at the caster.
Then set the target point of the persistent effect to caster point.
@Kueken531: Go
That worked! Thank you!