HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

determining player that gives unit an order

10-20-2009, 01:35 PM#1
fX_
in dota:
you can share control (to share ur item courier/chicken/crow).
couriers have an ability 'Transport- or Give Items'). when this ability ordered/casted, the courier delivers the items of the player that issued the order/cast to his hero.

is it that it is determined which player issued the order? or is there some sneaky/logic thing going on?
how would it be determined which player issued the order to the unit?
10-20-2009, 01:48 PM#2
Rising_Dusk
There is no way to detect the origin playerwise of a unit's order. There are tricks that emulate spellcasts where you can detect, however. For instance, if you replace the spell cast with a purchasable unit/item, you can detect the owner of the sold unit/item and that will be the player who issued the order.
10-20-2009, 01:58 PM#3
Anachron
If it really works as you said, the trick is like this:
There are 12 spells, and all players get an other spell to see.
IF the spell is cast, its checked which spell it is so you can teleport to the original spell cast triggering player.

I really hope this helps.
10-20-2009, 02:27 PM#4
fX_
Quote:
There are tricks that emulate spellcasts where you can detect, however. For instance, if you replace the spell cast with a purchasable unit/item, you can detect the owner of the sold unit/item and that will be the player who issued the order.
ya come to think of it none of the 'abilities' are 'target abilities', just 'instant ones'...

Quote:
There are 12 spells, and all players get an other spell to see.
IF the spell is cast, its checked which spell it is so you can teleport to the original spell cast triggering player.
seems overly complicated. i dont think i even get it; coz i dont think u can have 'localized spells' on units.

thx
10-20-2009, 02:29 PM#5
Anachron
No problem, if you need further help / details, just ask.