I need a hint... this is creating all 4 turrets at the center of the unit that has the behavior that launches this effect, and I want it to create them at the 4 offsets. I'm stumped.
Seems like it should work. Have you played with the flags? Try the "Placement" flag. Technically what it does is check the spot you want the unit to spawn to make sure that it can spawn there, and if not it moves it slightly until it can. But maybe the effect is ignoring the offsets because it expects some flag to be set?
Well, the placement flag is what tells the placed units to avoid other units footprints. So if I turn on the Placement flag, instead of all of the turrets spawning directly underneath the Starport, they all get pushed out to the perimeter - but still not at the offsets that I'm specifying. I'll post the whole create unit effect here just to be safe i didn't miss something.
I have a Buff Behavior on a structure that runs a Set Effect when it receives lethal damage. The Set Effect runs a Create Unit Effect that creates the killed unit under the control of the owner of the killing unit, and the Set Effect also runs the Create Unit Effect above, that creates the 4 Missile Turrets. The Missile Turrets are created, but they aren't following the offsets... which implies to me that it's something to do with the Create Unit Effect... unless there's some sort of overwriting hierarchy of placement from the behavior itself.
I'm stumped :/ I've changed just about every field that I think it could be and no unit is created. I've tested all the other effects and behavior individually and they all work. It's just this that's not doing what I want it to.
My thoughts are that it probably has to do with all the Target Source, Source Point, Source Target mumbo jumbo. Obviously I don't quite understand it all yet - so if someone could explain what's going wrong here, that would be great!
I'm stumped :/ I've changed just about every field that I think it could be and no unit is created. I've tested all the other effects and behavior individually and they all work. It's just this that's not doing what I want it to.
My thoughts are that it probably has to do with all the Target Source, Source Point, Source Target mumbo jumbo. Obviously I don't quite understand it all yet - so if someone could explain what's going wrong here, that would be great!
Thanks for all your help!
Yea it probably has to do with that. It could also be a Footprint problem, Footprints sometimes act crazy with Create Unit Effects I think and I'm not sure why.
I recreated the type of behavior you want, just check out the map below and compare it to your stuff or just use it :) I couldn't get it to work with Footprints, but I didn't really try to figure whether it is possible or not. So if you desperately need Footprints you have to fiddle around some more I guess.
It appears that the offsets are not working correctly for you in that example map either, but at least they're spawning now. Any ideas on how to get the offset to work?
Yeah the Location fields were completely messed up, dont know what I did there.
Now it makes more sense, but one thing I didn't think about is how you can make the angle of the offset constant. Right now in my example the Turrets get positioned differently based on where the unit that dealt the death blow is standing. But the Offsets are working at least.
edit:
And sorry about the inconvenience, I really thought it worked properly when in reality my first map was completely messed up :D Don't know right now how to fix the angles though. And there are probably more bugs... I get really confused by the Location fields too.
edit2:
Also, I would uncheck the "Placement" and "Offset by Radius" flags now since the Offsets are working properly.
Ok Sorry for Tripple post but I got it, you have to change the TurretPersistent "Location" and "Location Offset - End" value to Source Point or Source Unit. Makes total sense, but I never used that so far :)
I need a hint... this is creating all 4 turrets at the center of the unit that has the behavior that launches this effect, and I want it to create them at the 4 offsets. I'm stumped.
@playpong: Go
Seems like it should work. Have you played with the flags? Try the "Placement" flag. Technically what it does is check the spot you want the unit to spawn to make sure that it can spawn there, and if not it moves it slightly until it can. But maybe the effect is ignoring the offsets because it expects some flag to be set?
@TrenchaunT: Go
Well, the placement flag is what tells the placed units to avoid other units footprints. So if I turn on the Placement flag, instead of all of the turrets spawning directly underneath the Starport, they all get pushed out to the perimeter - but still not at the offsets that I'm specifying. I'll post the whole create unit effect here just to be safe i didn't miss something.
How is your Create Persistent effect set up?
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
@DrSuperEvil: Go
I have a Buff Behavior on a structure that runs a Set Effect when it receives lethal damage. The Set Effect runs a Create Unit Effect that creates the killed unit under the control of the owner of the killing unit, and the Set Effect also runs the Create Unit Effect above, that creates the 4 Missile Turrets. The Missile Turrets are created, but they aren't following the offsets... which implies to me that it's something to do with the Create Unit Effect... unless there's some sort of overwriting hierarchy of placement from the behavior itself.
Still say use a create persistent to do the offsetting which then uses the create unit.
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
Okay, I've tested it out a few times using a Create Persistent... and no turret spawns at all. Here's how I have it set up:
Any thoughts?
I'm stumped :/ I've changed just about every field that I think it could be and no unit is created. I've tested all the other effects and behavior individually and they all work. It's just this that's not doing what I want it to.
My thoughts are that it probably has to do with all the Target Source, Source Point, Source Target mumbo jumbo. Obviously I don't quite understand it all yet - so if someone could explain what's going wrong here, that would be great!
Thanks for all your help!
Yea it probably has to do with that. It could also be a Footprint problem, Footprints sometimes act crazy with Create Unit Effects I think and I'm not sure why.
I recreated the type of behavior you want, just check out the map below and compare it to your stuff or just use it :) I couldn't get it to work with Footprints, but I didn't really try to figure whether it is possible or not. So if you desperately need Footprints you have to fiddle around some more I guess.
@Bommes: Go
It appears that the offsets are not working correctly for you in that example map either, but at least they're spawning now. Any ideas on how to get the offset to work?
Woops, you are right. Just appeared like they did because of the placement thing.
I'll see if I find a way asap.
Yeah the Location fields were completely messed up, dont know what I did there.
Now it makes more sense, but one thing I didn't think about is how you can make the angle of the offset constant. Right now in my example the Turrets get positioned differently based on where the unit that dealt the death blow is standing. But the Offsets are working at least.
edit:
And sorry about the inconvenience, I really thought it worked properly when in reality my first map was completely messed up :D Don't know right now how to fix the angles though. And there are probably more bugs... I get really confused by the Location fields too.
edit2:
Also, I would uncheck the "Placement" and "Offset by Radius" flags now since the Offsets are working properly.
Ok Sorry for Tripple post but I got it, you have to change the TurretPersistent "Location" and "Location Offset - End" value to Source Point or Source Unit. Makes total sense, but I never used that so far :)
Really useful, I learned something here too.
Just tested it myself, the Spawn Offset for the create effect seems to be not functional at all. Persistent offsets work flawlessly, though.
€ hm, too slow.
@Bommes: Go
Awesome! Thanks, that did the trick perfectly. Now on to the next problem/thread! hehe
So in short post 4 was right all along.
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
That help me too! 5 years later haha :)