Print("") command displayed within area of entity

Blitz3D Forums/Blitz3D Beginners Area/Print("") command displayed within area of entity

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I can't figure this one out. I've got an entity that I would like when I get within a certain distance to use the Print("") command and display on the screen. I have included some code I would like you to look at and help me from here unless I am totally off, then in which case you can help me completely. So could someone help me out?

If entitya < 3,0,0 Then Print("Hello, what is your name?")
name$=Input("")
Print("Nice to meet you ") +name$


entitya is a .b3d model btw, I don't know if that makes any difference or not. I want it within 3 blitz units on the x axis.

Thanks,
Chad