I have a little problem with neutral "dinamic" object:
this objects are neutral ( see white object), but the attacker units ( blue ) continue to engage neutral object, but they don't shot.
And in a large battle some units ( blue) don't shot the enemy (red ) because they are engaging neutral object.
I created this units between the file: \LuaRules\Gadgetsunit├áiniziali.lua
of the map folder.
I used WORLD_BUILDER SCRIPT to create these two neutral units
Code: Select all
local u local CreateUnit = Spring.CreateUnit local GetGaiaTeamID = Spring.GetGaiaTeamID local GiveOrderToUnit = Spring.GiveOrderToUnit local AddBuildOrders = Spring.AddBuildOrders local CreateFeature = Spring.CreateFeature function GameStart() u = CreateUnit("generatore",2867,0,1434,0,GetGaiaTeamID()) u = CreateUnit("generatore",2867,0,1770,90,GetGaiaTeamID())
so... How can I set these objects as neutral??
I would not want attacker try to engage neutral units.