I have a map which works like Desert strike, if you dont know then heres a quick explanation:
- Each Team has a frotress where their units get spawned.
- Each unit that enters within 25 range of the fortress gets told to attack the other fortress.
before i go on i want to say that the bug happens like 2 out of 10 games, most of the time it will work fine, it can just happen sometimes in middle game or at the beginning of the map
Ok so... the bug in my map will stop telling the units to attack the other fortress like they will just be spawned and stand still(only saw it happen to 1 team at a time, the other teams units will still move), but for this i have an anti idle trigger for every unit that goes into idle state, they will still be told to attack the enemies fortress. However this doesnt seem to work on the units that are bugged so i started making an anti bug button so that if a players units get stuck they can press a GUI button to give the units the attacking order again.
So i tried making this unbug button but it doesnt work and i dont have a clue why, i have attached a file which includes the unbug setting in a clean map so you can have a look if you have time. Below you can see the trigger what actually happens when pressing the unbug. They do not execute the order even though from the textmessage i can see they get triggered...
I dont know why the units some times get stuck, i mean most of the time it works fine and it can suddenly happen middle game... i also seen it happen that player 1 on team 1 units get stuck but player 2 from team 1 units still move while they get triggered by the same area.
Anyways if anyone can tell me why my unbug button wouldnt work, pls enlighten me!
activateunbugEventsDialog-(Useddialogitem)isusedbyPlayerAnyPlayerwitheventtypeClickedActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Useddialogitem)==UnbugThenUI-Display"im used"for(Allplayers)toSubtitleareaUnitGroup-Pickeachunitin(Anyunitsin(Entiremap)ownedbyplayerAnyPlayermatchingExcluded:Heroic,Missile,Dead,Hidden,withatmostAnyAmount)anddo(Actions)ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Player(Ownerof(Pickedunit))isgivingplayer(Player1from(Playersonteam1))Non-aggression)==TrueThenUI-Display("Im ordered to move:"+(Nameof(Unittypeof(Pickedunit))))for(Allplayers)toSubtitleareaUnit-Order(Triggeringunit)to(AttacktargetingTeam2Spawn)(ReplaceExistingOrders)
Omg, yes how stupid.... Im gonne try if this fixes my unbug button. !
Thnx for the reply man it fixed my unbug button, it was a stupid mistake!
anyways if anyone has an idea why sometimes my units get stuck in the first place i would really love to know!
you can play my map on EU its called Desert strike hero 2
Hey ppl,
I have a map which works like Desert strike, if you dont know then heres a quick explanation:
- Each Team has a frotress where their units get spawned.
- Each unit that enters within 25 range of the fortress gets told to attack the other fortress.
before i go on i want to say that the bug happens like 2 out of 10 games, most of the time it will work fine, it can just happen sometimes in middle game or at the beginning of the map
Ok so... the bug in my map will stop telling the units to attack the other fortress like they will just be spawned and stand still(only saw it happen to 1 team at a time, the other teams units will still move), but for this i have an anti idle trigger for every unit that goes into idle state, they will still be told to attack the enemies fortress. However this doesnt seem to work on the units that are bugged so i started making an anti bug button so that if a players units get stuck they can press a GUI button to give the units the attacking order again.
So i tried making this unbug button but it doesnt work and i dont have a clue why, i have attached a file which includes the unbug setting in a clean map so you can have a look if you have time. Below you can see the trigger what actually happens when pressing the unbug. They do not execute the order even though from the textmessage i can see they get triggered...
I dont know why the units some times get stuck, i mean most of the time it works fine and it can suddenly happen middle game... i also seen it happen that player 1 on team 1 units get stuck but player 2 from team 1 units still move while they get triggered by the same area.
Anyways if anyone can tell me why my unbug button wouldnt work, pls enlighten me!
Unit - Order (>>>Triggering unit<<<) to ( Attack targeting Team2Spawn) (Replace Existing Orders)
Must be replaced by "Picked Unit"
@Zanryu1337: Go
Omg, yes how stupid.... Im gonne try if this fixes my unbug button. !
Thnx for the reply man it fixed my unbug button, it was a stupid mistake!
anyways if anyone has an idea why sometimes my units get stuck in the first place i would really love to know! you can play my map on EU its called Desert strike hero 2