{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/7453","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/7453/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/7453/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/7453/events","html_url":"https://github.com/OpenRA/OpenRA/issues/7453","id":57082424,"number":7453,"title":"Can not order Actor.Attack command","user":{"login":"Computerfreaked","id":6849444,"avatar_url":"https://avatars.githubusercontent.com/u/6849444?v=3","gravatar_id":"","url":"https://api.github.com/users/Computerfreaked","html_url":"https://github.com/Computerfreaked","followers_url":"https://api.github.com/users/Computerfreaked/followers","following_url":"https://api.github.com/users/Computerfreaked/following{/other_user}","gists_url":"https://api.github.com/users/Computerfreaked/gists{/gist_id}","starred_url":"https://api.github.com/users/Computerfreaked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Computerfreaked/subscriptions","organizations_url":"https://api.github.com/users/Computerfreaked/orgs","repos_url":"https://api.github.com/users/Computerfreaked/repos","events_url":"https://api.github.com/users/Computerfreaked/events{/privacy}","received_events_url":"https://api.github.com/users/Computerfreaked/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenRA/OpenRA/labels/Scripting","name":"Scripting","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-09T20:07:05Z","updated_at":"2015-11-08T16:44:04Z","closed_at":"2015-11-08T16:44:04Z","body":"I tried ordering an e1 actor(infantry) to attack a building. The game crashes and reports: Actor 'e1' does not define a property 'Attack'\r\n\r\nThe Lua API says void Attack(Actor target) => Fly an attack against the target actor. Requires Trait: AttackPlane.\r\n\r\nIt seems this command is for aircraft only so this means there is no command for non-aircraft actors to attack anything?!?\r\n\r\nFull log:\r\n\r\nFatal Lua Error: [string \"BindingSupport.lua\"]:30: Uncaught CLR exception at Lua->CLR boundary: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Eluant.LuaException: [string \"BindingSupport.lua\"]:30: Actor 'e1' does not define a property 'Attack'\r\n   at Eluant.LuaRuntime.Call(IList`1 args)\r\n   at Eluant.LuaRuntime.Call(LuaFunction fn, IList`1 args)\r\n   at OpenRA.Mods.Common.Scripting.UtilsGlobal.Do(LuaValue[] collection, LuaFunction func)\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   at OpenRA.Scripting.ScriptMemberWrapper.Invoke(LuaVararg args)\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   at Eluant.LuaRuntime.MethodWrapper.Invoke(Object[] parms)\r\n   at Eluant.LuaRuntime.MakeManagedCall(IntPtr state, MethodWrapper wrapper)\r\n   at OpenRA.Scripting.ScriptContext.FatalError(String message)\r\n   at OpenRA.Mods.Common.Scripting.TriggerGlobal.<AfterDelay>c__AnonStorey78.<>m__D6()\r\n   at OpenRA.Effects.DelayedAction.<Tick>m__20C(World w)\r\n   at OpenRA.World.Tick()\r\n   at OpenRA.Game.InnerLogicTick(OrderManager orderManager)\r\n   at OpenRA.Game.LogicTick()\r\n   at OpenRA.Game.Loop()\r\n   at OpenRA.Game.Run()\r\n   at OpenRA.Program.Run(String[] args)\r\n   at OpenRA.Program.Main(String[] args)\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8430833-can-not-order-actor-attack-command?utm_campaign=plugin&utm_content=tracker%2F36085&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F36085&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments/154840309","html_url":"https://github.com/OpenRA/OpenRA/issues/7453#issuecomment-154840309","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/7453","id":154840309,"user":{"login":"obrakmann","id":4331210,"avatar_url":"https://avatars.githubusercontent.com/u/4331210?v=3","gravatar_id":"","url":"https://api.github.com/users/obrakmann","html_url":"https://github.com/obrakmann","followers_url":"https://api.github.com/users/obrakmann/followers","following_url":"https://api.github.com/users/obrakmann/following{/other_user}","gists_url":"https://api.github.com/users/obrakmann/gists{/gist_id}","starred_url":"https://api.github.com/users/obrakmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obrakmann/subscriptions","organizations_url":"https://api.github.com/users/obrakmann/orgs","repos_url":"https://api.github.com/users/obrakmann/repos","events_url":"https://api.github.com/users/obrakmann/events{/privacy}","received_events_url":"https://api.github.com/users/obrakmann/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T16:44:04Z","updated_at":"2015-11-08T16:44:04Z","body":"Fixed in #8285."}}