View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005284 | Spring engine | Lua | public | 2016-06-26 20:33 | 2017-09-13 21:43 |
| Reporter | Code_Man | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 101.0+git | ||||
| Summary | 0005284: Paralyzing trough lua does not work | ||||
| Description | Neither 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 Reproduce | Should be obvious. | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
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. |
|
|
ZK example https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaRules/Gadgets/unit_paralysis_damage.lua#L77 |
|
|
NCR it seems |
| 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 |