Sid Meier's Civilization V

Sid Meier's Civilization V

Unit Created Event [snippet for mod makers]
正在显示第 1 - 4 项,共 4 项条目
更新于:2014 年 7 月 30 日 下午 3:27

No code changes. Added some extra comments explaining the code. Added version information to the files and unit created directory so that it will be easier to tell what version of the code another mod is using.

更新于:2014 年 7 月 25 日 下午 7:23

Fixed missing line in the previous version.

更新于:2014 年 7 月 21 日 上午 11:10

Added a way for functions that hook into this event to kill the unit without causing other functions hooked into this event to crash. Instead of using unit:Kill() developers should give the unit the new promotion "PROMOTION_MARKED_FOR_DEATH". Units with this promotion will be killed automatically after all hooked functions have executed.

更新于:2014 年 5 月 28 日 下午 6:59