[Defconapi] [Lua API] OnEvent() unitType "Invalid"
Geoff Cox
Geoff.Cox at ihealthtechnologies.com
Tue Feb 23 14:58:30 CST 2010
I'm curious to whether or not this is an intended output (and perhaps if
unitType "Invalid" is only for events such as CeaseFire, Votes, ect)?
function OnEvent(eventType, sourceID, targetID, unitType, longitude,
latitude)
if (eventType == "Destroyed") then
This SendChat(tostring(sourceID:GetUnitType()) .. " killed a " ..
unitType) outputs "Gunshot killed a Invalid"
This SendChat(tostring(sourceID:GetUnitType()) .. " killed a " ..
tostring(targetID:GetUnitType())) outputs "Gunshot killed a Fighter"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.introversion.co.uk/pipermail/defconapi/attachments/20100223/c6452086/attachment.htm
More information about the Defconapi
mailing list