killed by -widget

killed by -widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

killed by -widget

Post by TradeMark »

is there such widget already? or is it even possible to know who killed your commander? (or your last unit, depends on if com ends is on).

every other game has this feature...

it would be cool to see who killed you, also good way to notice teamkillers... without re-replaying 10 times
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: killed by -widget

Post by SirMaverick »

TradeMark wrote:is there such widget already? or is it even possible to know who killed your commander? (or your last unit, depends on if com ends is on).
For widgets: Only possible when the attacking unit was within LOS.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: killed by -widget

Post by TradeMark »

oh.. so damages doesnt send playerID...

needs engine changes then :/
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Re: killed by -widget

Post by NOiZE »

or make it a gadget =)
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: killed by -widget

Post by Niobium »

UnitDamaged or Spring.GetLastAttacker (Need attacker in radar/los)
Spring.GetUnitTeam (Need unit in radar/los)
Spring.GetTeamInfo (Always passes)
Spring.GetPlayerInfo (Always passes)

Done.
Post Reply

Return to “Lua Scripts”