How would I create a wall of forcefields? Id like two abilities, one where it's just a straight line of forcefields in a row. Then also an ability where its forcefields in a circle around an target area
The fastest way to get something like this would be to make a new effect of type "Create Persistent", go to the "Ability" tab and search for your force field ability, set the "Effect - Effect" to your selfmade persistent effect.
Now go into this effect and change the values of:
"Period Count" - this is the number of force fields you want to cast
"Period Effects" - change this to the "Sentry - Force Field" effect (the original force field effect which is used in the ability)
"Periodic Offsets" - this determines where your force fields will be cast. Make as many offsets as you have force fields, the offsets are XYZ coordinates where the X is left/right to where your caster faces and the Y is forward/backwards.
i made the abilities before checking where you posted this thread... Hhhhh!!!... i thought it was in the trigger section... doing it in the data is better but harder... anyways if you want the easy way i uploaded a sample map bellow... you need to create a better dummy ability... the ones i made was rushed
Thanks got it, but now for a something that im not sure is even possible, but hopefully or at least an easy version of it. So when I click the target location and make my forcefields, would it be possible to make lightly colord forcefields showing me where they would be placed if I were to cast it? If thats not possible would at least making a red line be possible?.
I tried looking at the ghost emp ability, to find how they made the red circle cursor, which isn't what I want but I couldnt even figure that out sadly, every model I click is just a tiny white dot, so dont think any of them are it
What you want to achieve is not very hard, but it can get very annoying if you have a lot of force fields. I don't know if there is a less stressful way, but sadly I doubt it. You have to create 2 actors for every AoE indicator on the ground.
What you want to look into when you see these AoE-indicators are Actors called "Splat". In case of the force field it is an actor called "ForceFieldCursorSplat (Unnamed)", it gets created with an actor event Abil.ForceField.Cursor, which is, well, the aiming time of the force field ability.
What you want to do now is just duplicate this actor, make sure that the actor events are the same. Now this splat actor will get created multiple times when you are the in the cursor state of your Force Field ability, but they are all at the same spot (the cursor). So the last thing you have to do is to attach these actors at an offset, and in case of actors this is done with other actors called Site Operations (Local Offset). Create a new actor of that type and change the "Actor: Local Offset" to the values of your persistent offsets from the effect you created earlier. Now go into your duplicated Cursorsplats and give each of them an offset by changing the field "Hosting: Host Site Operations". Just leave the BasicScope Site Op or how it is called there (this makes the splat follow your mouse cursour I think) and add your fresh local offset actor to it. That should be it.
By the way what I forgot to say... I would make sure that the offsets you are creating in your persistent effect are symmetrical, especially when it is easy to do like with your circle or with a wall. Else it might easily happen that all the offsets from your site operations are messed up because I think the persistent effect rotates with the caster while the cursor splat doesn't. Actually I didn't test this and the more I think about it it might be messed up :) Let me experiment a bit.
edit:
Yeah actually I messed that up. I will try to fix it, but I'm not sure I can do it.
edit 2:
Okay, I tried it but I give up (at least for the moment), the Set Rotation actor events are really messy. I thought I might be able to get something presentable but I can't fix it, sorry :( I really don't know how to make an hosted/attached actor face at the direction I want, if somebody can help there I would be really grateful!
How would I create a wall of forcefields? Id like two abilities, one where it's just a straight line of forcefields in a row. Then also an ability where its forcefields in a circle around an target area
The fastest way to get something like this would be to make a new effect of type "Create Persistent", go to the "Ability" tab and search for your force field ability, set the "Effect - Effect" to your selfmade persistent effect.
Now go into this effect and change the values of:
"Period Count" - this is the number of force fields you want to cast
"Period Effects" - change this to the "Sentry - Force Field" effect (the original force field effect which is used in the ability)
"Periodic Offsets" - this determines where your force fields will be cast. Make as many offsets as you have force fields, the offsets are XYZ coordinates where the X is left/right to where your caster faces and the Y is forward/backwards.
i made the abilities before checking where you posted this thread... Hhhhh!!!... i thought it was in the trigger section... doing it in the data is better but harder... anyways if you want the easy way i uploaded a sample map bellow... you need to create a better dummy ability... the ones i made was rushed
@Bommes: Go
Thanks got it, but now for a something that im not sure is even possible, but hopefully or at least an easy version of it. So when I click the target location and make my forcefields, would it be possible to make lightly colord forcefields showing me where they would be placed if I were to cast it? If thats not possible would at least making a red line be possible?.
I tried looking at the ghost emp ability, to find how they made the red circle cursor, which isn't what I want but I couldnt even figure that out sadly, every model I click is just a tiny white dot, so dont think any of them are it
@threeleven: Go
What you want to achieve is not very hard, but it can get very annoying if you have a lot of force fields. I don't know if there is a less stressful way, but sadly I doubt it. You have to create 2 actors for every AoE indicator on the ground.
What you want to look into when you see these AoE-indicators are Actors called "Splat". In case of the force field it is an actor called "ForceFieldCursorSplat (Unnamed)", it gets created with an actor event Abil.ForceField.Cursor, which is, well, the aiming time of the force field ability.
What you want to do now is just duplicate this actor, make sure that the actor events are the same. Now this splat actor will get created multiple times when you are the in the cursor state of your Force Field ability, but they are all at the same spot (the cursor). So the last thing you have to do is to attach these actors at an offset, and in case of actors this is done with other actors called Site Operations (Local Offset). Create a new actor of that type and change the "Actor: Local Offset" to the values of your persistent offsets from the effect you created earlier. Now go into your duplicated Cursorsplats and give each of them an offset by changing the field "Hosting: Host Site Operations". Just leave the BasicScope Site Op or how it is called there (this makes the splat follow your mouse cursour I think) and add your fresh local offset actor to it. That should be it.
By the way what I forgot to say... I would make sure that the offsets you are creating in your persistent effect are symmetrical, especially when it is easy to do like with your circle or with a wall. Else it might easily happen that all the offsets from your site operations are messed up because I think the persistent effect rotates with the caster while the cursor splat doesn't. Actually I didn't test this and the more I think about it it might be messed up :) Let me experiment a bit.
edit:
Yeah actually I messed that up. I will try to fix it, but I'm not sure I can do it.
edit 2:
Okay, I tried it but I give up (at least for the moment), the Set Rotation actor events are really messy. I thought I might be able to get something presentable but I can't fix it, sorry :( I really don't know how to make an hosted/attached actor face at the direction I want, if somebody can help there I would be really grateful!
I think my brain just exploded... tried... its too hard... lol
Set Rotation and Attachment Set Rotation events just dont work, rather use a SOp (Forward Vector) to set the direction of your 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