| 02-26-2006, 10:54 PM | #1 |
JASS:function GetHandleUnit takes handle subject, string name returns unit return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name) return null endfunction Copied from wc3jass.com...but LocalVars() doesn't seem to be a function? I can't find it in blizzard.j, common.j, the JASS manual, or anywhere I've looked. So, basically I need to know what I have to do to get that function to work =P. Thanks for the help. Edit: And, now that I look at it, SetHandleHandle or any of the SetHandles don't seem to be in blizzard.j or common.j. Unless ctrl-f just didn't see them. |
| 02-26-2006, 11:10 PM | #2 |
none of these functions is in bj or cj. they are custo functions. you can find the LocalVars function @ wc3jass.com , where you copied this one. this is a part of the local handle variables. http://wwww.wc3jass.com/viewtopic.php?t=224 btw here is that func JASS:function LocalVars takes nothing returns gamecache // Replace InitGameCache("jasslocalvars.w3v") with a global variable!! return InitGameCache("jasslocalvars.w3v") endfunction |
| 02-26-2006, 11:21 PM | #3 |
Ahh..it seemed like I was missing something =D. Thanks. |
