Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Set PredictedStance when changing stance from Lua. #14421
--- a/mods/cnc/maps/gdi01/gdi01.lua +++ b/mods/cnc/maps/gdi01/gdi01.lua @@ -38,6 +38,10 @@ ReinforceWithLandingCraft = function(units, transportStart, transportUnload, ral if rallypoint ~= nil then a.Move(rallypoint) + print(a.Type) + print(a.Stance) + a.Stance = "AttackAnything" + print(a.Stance) end end) end)
Before fix: UI does not change to AttackAnything stance. After fix: it does.