2025-08-03 04:20 CEST

spring: develop cda1a2a7 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
KDR_11k KDR_11k develop 2007-12-16 14:20:55 develop ba07690b
Changeset * committed Mantis # 689:
Adds the KILL_UNIT(102) constant for get in COB, acts like the lua DestroyUnit function.
with modifications:
- Defaults are gone (I don't think they worked, used code like reclaimed = p3 ? p3 : false)
- Constant number changed to 102 (there was still plenty of room)
- Supplying no unit number now kills the calling unit (for convenience)
- Returns zero if the target unit doesn't exist

git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@5020 37977431-3df6-0310-b722-df95706aa16b
mod - rts/Sim/Units/COB/CobInstance.cpp Diff ] File ]