• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Spell] Units randomly ignore casting range when ordered

Status
Not open for further replies.
Level 3
Joined
Jul 15, 2014
Messages
39
So I am ordering some units (one by one but they are doing it almost simultaneously in time) to cast a trading ability targeting other units.
Mostly like that
  • Actions
  • Custom script: call IssueTargetOrder(GetTriggerUnit(), "eattree", udg_u)
  • Events
  • Unit - A unit Starts the effect of an ability
And on that event i process some trade between the units

The problem is, some units ignore casting range. They just cast the ability from where they are standing and don't move. Those some units are fraction of all units and kind of random.
Has anyone experienced this problem?
 
Well the whole trigger is big and confusing and not worth spending your time, rly. If its there ill find it eventually.

I was just thinking, maybe its widespread problem, that units can ignore cast range of ability. They use it just fine, only ignore range. And i tried 2 different abilities - channel and treeEating
 
I haven't seen this problem, but maybe just check the distance between target and caster and if it's greater than the range needed , order the unit to stop, maybe pain in the ass to trigger just every spell like this but it'd be a last solution for that, you also have to post trigger however it is big, maybe pros here can fetch the problem from it ;)
 
Well the problem with distance is that i tried it, and it gives wrong distance most of the time. Even when units are casting from right range, it sometimes says they are 900+away, sometimes its normal like 40+.
Distance checking between positions of 2 units is bugged - that's what i concluded after spending 30 minutes on it. And i wasn't going to use it anyway since it must be very resource consuming (i would need to cast it often)
 
Oh, i fixed my distance procedure, it did show wrong numbers cause there were more of these wrong casting units than i thought. And it shown the distance of wrong casting units when i thought it should show distance of right casting ones.

And i figured what caused the units to cast without moving. There was this line, some lines after the order.
  • Unit - Make (Casting unit) face City Center 0004 <gen> over 0.20 seconds
But the thing is then, there exists an exploit for human player to make that kind of interruption of unit to make them cast the ability ignoring casting range.
 
EvilPotato, I am really curious now. Could you upload your map or at least a test map which depicts the issue?
 
Damit, i tried but i cant reproduce it in new map. And even in the original map if i set seemingly all the conditions to what they were before i created this thread, it seems it only bugs very rarely (bugged only once in 10 minutes).
Sorry, I cant reproduce it now.
Ill upload when i figure out how to reproduce it.
Or when I make my current map so that u dont need to type 15 different commands in right order when units are in right places to make the units start the trading and consuming.
Crap, this looks like i might have made all this shit up. I didn't, i hope ill upload this in next several days.
 
Status
Not open for further replies.
Back
Top