why not?

Blitz3D Forums/Blitz3D Beginners Area/why not?

If EntityDistance(p/model,coin(i))<2.25:PlaySound pickup1

Why can't I refer to the custom type here.
I dont know how else I can do it.i want the p/model which was created by copyentity from the original player model
to collect coins using the above

try p\model

err, thats what i used. i get a message saying
'Arithmetic operator canot be appplied to custom object types'

its ok , I sorted it out, used the listener attached to the player instead

Ruz, note the difference between p/model and p\model -- backward slash for type fields, forward for division.

shoot, that was really careless of me