#Why does `Entities.GetItemInSlot( hero_index, slot_index )` return Undefined?
1 messages · Page 1 of 1 (latest)
its an npc function.
oh, just occurred to me that you mean the panorama function.
it should only return undefined if there is nothing in that slot
No worries. I figured it out. The problem was that I used toString( int ), which js returned as undefined. int.toString() worked fine. Still learning little things about js XD
Is there even a toString(int)?
No, the native function is Object.toString(). Js natively returns undefined if you toString(Object). I goofed there because I was used to Lua's interchangeability in that regard.