Function Request: Detect if you've killed an enemy unit
Moderator: Moderators
Function Request: Detect if you've killed an enemy unit
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
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
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)Hoi wrote:Why not for everything? so you could make something like the ota info bar (when you press space)
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
I'll need a gadget then
Re: Function Request: Detect if you've killed an enemy unit
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.Hoi wrote: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
First and foremost:
90% of currently implement functions are documented here, in the wiki.
Secondly, you want this function:
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.
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
Re: Function Request: Detect if you've killed an enemy unit
i would love a kill counter a la OTA, someone plz make it =)
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Function Request: Detect if you've killed an enemy unit
Satirik's IceUI fork shows a column for kills and losses for each player on your team. Is that not it?