Page 1 of 1

Documentation Confirmation

Posted: 07 Sep 2016, 13:19
by PicassoCT
Hi, codeman and me stumbled upon the LUA-Callins page, in particular
https://springrts.com/wiki/Lua:Callins#UnitDamaged

Code: Select all

addon.UnitDamaged(unitID, unitDefID, unitTeam, damage, paralyzer, weaponDefID, projectileID, attackerID, attackerDefID, attackerTeam)
I tryied to decude the validness of those arguments from the source:
https://github.com/spring/spring/blob/a ... ler.h#L465

Code: Select all

ITERATE_UNIT_ALLYTEAM_EVENTCLIENTLIST(UnitDamaged, unit, attacker, damage, weaponDefID, projectileID, paralyzer)
ph'nglui mglw'nafh Devs R'lyeh wgah'nagl fhtagn. Can you confirm this has changed?

Re: Documentation Confirmation

Posted: 07 Sep 2016, 13:34
by hokomoko
no, because you've looked in the wrong place

https://github.com/spring/spring/blob/d ... e.cpp#L970

Re: Documentation Confirmation

Posted: 07 Sep 2016, 17:57
by PicassoCT
Thank you. To be fair, spring has a lot of places to look :D :oops: