HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting stuff...

07-07-2008, 03:38 AM#1
Av3n
Ok the issue i have this time is with items with the classification powerup.

I know that you can detect the point when you buy the item using one of the order detection events, but which one? Since you can't use EVENT_PLAYER_UNIT_ITEM_ACQUIRE to catch itens for the powerup classification.

Also on the same topic when i catch the event, is it possible that you can get the item brought and the unit that triggers it?

Thanks in advance

-Av3n
07-07-2008, 11:29 PM#2
darkwulfv
Quote:
Also on the same topic when i catch the event, is it possible that you can get the item brought and the unit that triggers it?
If what I think you want done is what I think it is... then:

Collapse JASS:
local function Blah takes nothing returns nothing
  local unit u = GetManipulatingUnit()
  local item it = GetManipulatedItem()

//do stuff

set u = null
set it = null
endfunction

I'm fairly sure these will work.
07-08-2008, 02:22 AM#3
Av3n
i was refering to the same problem above... my bad for not making it clear.

I got the problem sorted out anyway, thanks for at least posting to the thread darkwulfv

-Av3n