Statistics: Posted by Turkey — 06 Aug 2015, 03:27
group = ScenarioUtils.CreateArmyGroup("Hostiles", "SpecialDefend_"..faction);
for c, defense in group do
local defenseMultiplier = 5;
local WeaponA = defense:GetWeapon(1);
-- Radius is changed, damage is not.
-- Increase the damage and range.
WeaponA:ChangeDamage(110);
WeaponA:ChangeMaxRadius (150);
-- This does change the damage however.
defense:GetBlueprint().Weapon[1].Damage = 110;
-- Works
-- Increase rate of fire (ROF) and adds randomness
WeaponA:SetFiringRandomness(1);
WeaponA:ChangeRateOfFire(3);
local WeaponBluePrint = WeaponA:GetBlueprint();
-- Doesn't work at all
WeaponBluePrint.MuzzleVelocity = 100;
WeaponBluePrint.ProjectileLifetime = 50;
-- But it does show the changes.
LOG(repr(Weapon));
LOG(repr(defense));
defense:SetCanTakeDamage(false);
end
Statistics: Posted by Jip — 03 Aug 2015, 11:40