Statistics: Posted by DDDX — 05 Jun 2019, 19:04
local Stunns = self:GetCurrentTargetPos()
Stunns:SetStunned(7, self)
Stunns:SetStunned(7, self)
Statistics: Posted by Franck83 — 05 Jun 2019, 13:43
Statistics: Posted by DDDX — 05 Jun 2019, 08:35
OnWeaponFired = function(self) --the weapon is Overcharge, projectile
LOG("----- Overcharge fired...");
local wep = self.unit:GetWeaponByLabel('laser1emp') --this is my dummy weapon, taken from the Manticore Blackops Unleashed turret, it does the stunns
self.targetaquired = self:GetCurrentTargetPos()
LOG("----- Overcharge target defined...");
if self.targetaquired then -----------THIS!!! This is where it fails.
LOG("----- if Overcharge target defined then...");
if self:HasEnhancement('RailGun3') then
LOG("----- Overcharge we got enhancement...");
wep:SetTargetGround(self.targetaquired)
LOG("----- Overcharge settargetground done...");
self:SetWeaponEnabledByLabel('laser1emp', true)
LOG("----- Overcharge emp enabled...");
wep:SetTargetGround(self.targetaquired)
LOG("----- Overcharge emp target set...");
wep:OnFire()
LOG("----- Overcharge emp fired...");
self:OnDisableWeapon()
self:ForkThread(self.PauseOvercharge)
SDFHeavyQuarnonCannon.OnWeaponFired(self)
end,
Statistics: Posted by DDDX — 04 Jun 2019, 21:42