Thank You very much Alexander, I did try everything except using MY in Material Event.
Unfortunately it still doesnt work. The last entity that uses the material, sets the amount of displacement for all that is uding the same material.

Ive tried changing so that i have different HMp models for entities, and lots of other stuff. But i have no luck.

I thought that this text from the readbeta was the ticket:

Quote:

material.enable_render
If this flag is set, the material's event function is executed at the
beginning of every entity rendering, if the material contains an
effect and was assigned to the entity. This can be used to perform
effect calculations based on entity skills or the entity's world
matrix.




Another funny thing is that im only allowed to use the MY pointer in the material event if i state further MTL.EVENTS.
If i only use event=function(); in the actual MATERIAL definition, i get "EmPTY POINTER all the time.

I hope there is something that i still dont understand.

And thanks again for your help.

Merry Christmas!