The entity that i spawn doesn't change model when i use setmodel(). I used iprints to make sure that everything was defined + developer commands but everything supposedly works.
im not really sure but doesnt "array.size" returns the length of the array not an string from it?
It returns the amount of entities in an array. In other words, the value "item" has an integer from 0-array.size. So if i only have two entities "item" can be either 0-1.
0 is the first value in an array, 1 the second, etc.
but anyways the result from level.powerups[0] would be a number. not an string which you need it to be the name of a modeltry just seting the model without all your extra stuff to see if its really the model not the code