Help with dynamic scripting in an own new campaign
I started creating new campaign and of course I'm using dynamic scripting. I am not good enough, so I need your help. Firstly, please do not close this topic until I finish my campaign. Who wants to know I am just only scripting, my friend makes only maps, so I can aim only on scripting.
And maybe to keep messages clear if I solve problem, I (or admin) will write a post with solution step by step and all previous tips concerned only this exact problem will be removed.
So, my first problem:
1. I want to order groups to attack next building, but this group(s) just only are "trying" to do something and stay in place - it looks like bug. Script code
How could I write to have properly working script?
Additional info : 'oddzial(number)' is a group of units, not important what type; 'gospo(number)' is a building, exactly farm; Kenji is a unit swordsmen.
What is more, if I use command "OnHouseDestroyed" and then "Actions.GroupAttackUnit" or "Actions.GroupAttackHouse" it works properly.