I am trying to do a gamemode that's pretty similar to Dawn of War 2 in gameplay. So I would need a cover system, the things you hide behind is destructibles. And if unit is close to it AND behind the object it would retrieve a buff.
(This is the hard part since it needs to test which angle the enemy is shooting from.)
I've tried the sentrys shield, but that don't work since even if a unit is on the wrong side and not covered it will still get the buff.
Please help me. it's one of the most important parts in my map.
You could probably do it this way, putting a region at every single obstacle, and then applying a buff when a unit enters a region and telling it that only certain other regions are allowed to hit units. But its alot easier just to give the projectiles being fired collision and let them hit terrain like normal units.
Smashcraft is a popular map with an example of projectile collision.
Hey guys.
I am trying to do a gamemode that's pretty similar to Dawn of War 2 in gameplay. So I would need a cover system, the things you hide behind is destructibles. And if unit is close to it AND behind the object it would retrieve a buff. (This is the hard part since it needs to test which angle the enemy is shooting from.) I've tried the sentrys shield, but that don't work since even if a unit is on the wrong side and not covered it will still get the buff.
Please help me. it's one of the most important parts in my map.
Thank you :)