Documentation Confirmation

Documentation Confirmation

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Documentation Confirmation

Post 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?
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: Documentation Confirmation

Post by hokomoko »

no, because you've looked in the wrong place

https://github.com/spring/spring/blob/d ... e.cpp#L970
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Documentation Confirmation

Post by PicassoCT »

Thank you. To be fair, spring has a lot of places to look :D :oops:
Post Reply

Return to “Game Development”