Warcraft III resources & community, 2003–2006 · archived

Handle to Integer

not rated
Submitted by Darky29Functions0 downloads
This little function uses the return bug to get the integervalue of any given handle.
Handles are for example variables of the type units, triggers, timers, groups e.t.c

Source

function Handle2Integer takes handle h returns integer
return h
return 0
endfunction

Comments

2
Everything in a map is decoded as an integer forexample, that peon u set on ur map would be stored as the integer 'gg_unit_opeo_0001'

This function would take the peon and return the intger 'gg_unit_opeo_0001'
Ummmm........can u tell a more understanding description?.......... :?