Page 1 of 1
Function Request: Detect if you've killed an enemy unit
Posted: 13 Sep 2008, 07:49
by REVENGE
Currently, Spring.GetUnitIsDead and widget:UnitDestroyed only return info for you or your allies' units. I request that either these two functions return values for enemy units killed while in your los, or have some alternative function that allows you to know that you killed an enemy unit. It's fine if los is a required condition for info to be returned.
Re: Function Request: Detect if you've killed an enemy unit
Posted: 13 Sep 2008, 09:04
by Hoi
Why not for everything? so you could make something like the ota info bar (when you press space)
Re: Function Request: Detect if you've killed an enemy unit
Posted: 13 Sep 2008, 09:08
by dizekat
Hoi wrote:Why not for everything? so you could make something like the ota info bar (when you press space)
Coz there will be a widget that displays special well visible marks where you killed some stuff outside LOS, for instance. A form of maphack. (Not very useful though)
You're not supposed to know what happens outside LOS, and widgets, the way it is designed, are not supposed to have any more knowledge than player gets.
Re: Function Request: Detect if you've killed an enemy unit
Posted: 13 Sep 2008, 09:10
by Hoi
I'll need a gadget then
Re: Function Request: Detect if you've killed an enemy unit
Posted: 13 Sep 2008, 09:15
by REVENGE
Hoi wrote:Why not for everything? so you could make something like the ota info bar (when you press space)
So what, you can track how many kills your team has? There's a function for that, and of course, someone has already made a widget that displays your kills and those of other teams.
Re: Function Request: Detect if you've killed an enemy unit
Posted: 13 Sep 2008, 09:16
by Hoi
Cool, link?
Re: Function Request: Detect if you've killed an enemy unit
Posted: 14 Sep 2008, 02:06
by REVENGE
First and foremost:
90% of currently implement functions are documented here, in the wiki.
Secondly, you want this function:
Code: Select all
Spring.GetTeamUnitStats
( number teamID ) ->
nil | number killed,
number died,
number capturedBy,
number capturedFrom,
number received,
number sent
Thirdly, the widget I'm talking about is part of the IceUI system, somewhere on jobjol. I don't use it because it slows my Spring down.
Re: Function Request: Detect if you've killed an enemy unit
Posted: 14 Sep 2008, 02:13
by NOiZE
i would love a kill counter a la OTA, someone plz make it =)
Re: Function Request: Detect if you've killed an enemy unit
Posted: 15 Sep 2008, 08:29
by CarRepairer
Satirik's IceUI fork shows a column for kills and losses for each player on your team. Is that not it?