View Issue Details

IDProjectCategoryView StatusLast Update
0005284Spring engineLuapublic2017-09-13 21:43
ReporterCode_Man Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version101.0+git 
Summary0005284: Paralyzing trough lua does not work
DescriptionNeither AddUnitDamage nor SetUnitHealth with paralysis only value do anything.
Tried both from a gadget and a script.
Even a value of 99999 does nothing.
Steps To ReproduceShould be obvious.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

sprung

2017-09-13 20:58

reporter   ~0018386

Works for ZK.

Remember that AddUnitDamage accepts paralyze *time* in the 3rd argument and damage itself is *always* 2nd (of normal type if 3rd arg is 0 and paralyze type otherwise). For example AddUnitDamage(unit, 0, 123) does *not* add 123 paralyze damage. It adds 0 paralyze damage with a timer cap of 123s.

Also note that you must specify paralyze time even if the 5th argument specifies a paralyzer weapon.

sprung

2017-09-13 20:59

reporter   ~0018387

ZK example https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaRules/Gadgets/unit_paralysis_damage.lua#L77

Kloot

2017-09-13 21:43

developer   ~0018388

NCR it seems

Issue History

Date Modified Username Field Change
2016-06-26 20:33 Code_Man New Issue
2017-09-13 20:58 sprung Note Added: 0018386
2017-09-13 20:59 sprung Note Added: 0018387
2017-09-13 21:43 Kloot Status new => closed
2017-09-13 21:43 Kloot Resolution open => no change required
2017-09-13 21:43 Kloot Note Added: 0018388