for example, i made a projectile that is from castor to a target point and hurts in a certain radius of the target point...BUT i want to make it hurt if it travels through a unit as it's heading to it's target point is that possible? details please if possible im a rookie with this
Buff which executes a periodic search effect which applies a damage effect on all properly filtered out targets.
1. create a damage effect, set an amount
2. create a search area effect, add an area, set the radius, set the effect to the damage effect, set the filters to ignore some kinds of units like invincible, dead, items, hidden, stasis, buildings
3. create a buff behavior, give it a period and set the periodic effect to the search area.
4. add the buff behavior to the projectile's behaviors in the unit tab.
-> Every [period] units found by the search effect after [filtering] the units in the area of [radius] around the unit with the buff receive the damage effect applied dealing [amount] of damage.
edit: oh yeah splash damage instead of search+damage works, too, like DrSuperEvil said below this post.
You can basically do everything you want it to do. You could give the found units a buff that slows them for a second, etc...
Read the tutorial on colliding projectiles. In short give the ammo unit under the Units data type that is used by the Launch Missile effect a Buff behaviour that uses a periodic Damage effect with splash.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
for example, i made a projectile that is from castor to a target point and hurts in a certain radius of the target point...BUT i want to make it hurt if it travels through a unit as it's heading to it's target point is that possible? details please if possible im a rookie with this
I was just recently working on this, but have since scrapped my project. Nevertheless, the projectile system works just fine, so I will attach it so you can take a look.
If you want to look at just the damage that I put on the bullets, look at my unit "Bullet_5" and follow the effects through its behaviors.
In case you want to test it in game, I should warn you that holding down (or tapping, I suppose) the left mouse button fires the assault rifle.
for example, i made a projectile that is from castor to a target point and hurts in a certain radius of the target point...BUT i want to make it hurt if it travels through a unit as it's heading to it's target point is that possible? details please if possible im a rookie with this
Buff which executes a periodic search effect which applies a damage effect on all properly filtered out targets.
1. create a damage effect, set an amount
2. create a search area effect, add an area, set the radius, set the effect to the damage effect, set the filters to ignore some kinds of units like invincible, dead, items, hidden, stasis, buildings
3. create a buff behavior, give it a period and set the periodic effect to the search area.
4. add the buff behavior to the projectile's behaviors in the unit tab.
-> Every [period] units found by the search effect after [filtering] the units in the area of [radius] around the unit with the buff receive the damage effect applied dealing [amount] of damage.
edit: oh yeah splash damage instead of search+damage works, too, like DrSuperEvil said below this post.
You can basically do everything you want it to do. You could give the found units a buff that slows them for a second, etc...
Read the tutorial on colliding projectiles. In short give the ammo unit under the Units data type that is used by the Launch Missile effect a Buff behaviour that uses a periodic Damage effect with splash.
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
I was just recently working on this, but have since scrapped my project. Nevertheless, the projectile system works just fine, so I will attach it so you can take a look.
If you want to look at just the damage that I put on the bullets, look at my unit "Bullet_5" and follow the effects through its behaviors.
In case you want to test it in game, I should warn you that holding down (or tapping, I suppose) the left mouse button fires the assault rifle.