View Single Post
Old 09-23-2011, 08:55 PM   #10
Yrth's Avatar
Join Date: Jul 2010
Posts: 76

Yrth has little to show at this moment (4)


Almost. Since the data attached to the timer is just an integer, you need to typecast it back to a struct before you can call methods on it, like this: call myStructType(GetTimerData(t)).methodName() or first store it in a local variable like BBQ suggested if you plan on doing multiple operations on it. Strictly speaking, when attaching the struct, it should also first be typecast to integer like this: call SetTimerData(t, integer(myStruct)), but if you don't do this JassHelper will do it automatically.
that's so cool
are the integer values given by GetHandleId(h) pointers to the actual handle or a kinda hashed version of the handle?

thanks everybody for the help, you guys are da best
Yrth is offline   Reply With Quote