I've been attempting to clean up my EMP-beam tank unit. All its supposed to do is fire a beam at a target thereby stunning it.
Except I get weird stun application:
At target, the stun is applied to my units and not the enemy's. Where the beam starts from the stun is applied to enemy targets.!? (Look closely in image for the stun symbol). Only the two blue tanks on the right are firing.
In the DUL301_unit.bp there are two things that seem to control it; "OnFire" and "OnImpact". Disabling one or the other removes the above effects but doesn't fix them.
- Code: Select all
Buffs = {
{
Add = {
OnFire = true,
OnImpact = true,
},
AppliedToTarget = false,
BuffType = 'STUN',
Duration = 2,
Radius = 5,
TargetAllow = 'ALLUNITS',
TargetDisallow = 'COMMAND',
},
},
CollideFriendly = false,
How do I get the OnImpact part to work properly and affect enemy units? Thanks!