why not?

Blitz3D Forums/Blitz3D Beginners Area/why not?

Ruz(Posted 2003) [#1]
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


skidracer(Posted 2003) [#2]
try p\model


Ruz(Posted 2003) [#3]
err, thats what i used. i get a message saying
'Arithmetic operator canot be appplied to custom object types'


Ruz(Posted 2003) [#4]
its ok , I sorted it out, used the listener attached to the player instead


BlitzSupport(Posted 2003) [#5]
Ruz, note the difference between p/model and p\model -- backward slash for type fields, forward for division.


Ruz(Posted 2003) [#6]
shoot, that was really careless of me