Hello After upgrade to version 89 I have a problem with the widget Show build. After a while the widget exits with an error on line 82
local r,g,b = Spring.GetTeamColor(Spring.GetUnitTeam(myCmd.uid))
The console shows that the argument GetTeamColor is null. I need your help or advice to fix the problem. Here is the entire text of the program to this point.
function widget:DrawWorld() for key, myCmd in pairs(command) do local cmd = myCmd.id local params = myCmd.params cmd = math.abs( cmd ) local x, y, z, h = params, params, params, params if(h ~= nil) then local degrees = h * 90 if Spring.IsAABBInView(x-1,y-1,z-1,x+1,y+1,z+1) then local r,g,b = Spring.GetTeamColor(Spring.GetUnitTeam(myCmd.uid))
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum