Hey again ,i thhought i would add this question here,because it is relevant i promise
.
now ,i am making an RPG (role play). i have a dialog that pops up within a certain distance of a unit. but i want to know which unit the player is closest too, so i can dictate what parameters the player can use.
that is, if he is near a woman from a certain town.her english is v.good.but if he is in a small village her english will be bad (thus learning the player a new language:)).
so in laymans
if nearestobject ? to player = vgoodenglish then blah
" " " " = vbadeng then blah diff
how would i go about using the nearestobject ? or is there a simpler way staring me in the face ? ( iwant to use object cause, i need some ineraction with buildings later on).
any help greatfully recieved .
many thanks
DB