Sid Meier's Civilization V

Sid Meier's Civilization V

Unit Created Event [snippet for mod makers]
Showing 1-4 of 4 entries
Update: 30 Jul, 2014 @ 3:27pm

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.

Update: 25 Jul, 2014 @ 7:23pm

Fixed missing line in the previous version.

Update: 21 Jul, 2014 @ 11:10am

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.

Update: 28 May, 2014 @ 6:59pm