HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

SetHandleHandle?

02-25-2006, 01:31 PM#1
Thunder_Eye
Hello all, can I save a item to a unit with the "SetHandleHandle"?
I'm not 100% sure it works as I think it does.
02-25-2006, 01:51 PM#2
Jacek
Why can't you just test it? I think it would work.
02-25-2006, 01:55 PM#3
Thunder_Eye
I dont have wc3 on this computer and I got really excited on the idea if it would work ^^

I'll test it later at home.
02-25-2006, 02:15 PM#4
Blade.dk
It would work.
02-25-2006, 02:19 PM#5
Thunder_Eye
Good, then the backpacksystem is soon done :) might post it at the resources later.

EDIT:
Why doesnt this work?

Custom script: set udg_c = GetHandleHandle(udg_u, "pack")

c = item variable
u = unit variable

it says "type mismatch in assignment"
02-25-2006, 04:27 PM#6
Anitarf
You have to use GetHandleItem(), you can't assign a generic handle to an item variable, because the generic handle could also be something other than an item..
02-25-2006, 04:32 PM#7
Thunder_Eye
Well I dont have any GetHandleItem in my mapscript, can someone post it here or can I just copy-past the ones like GetHandleInt and do some changes?