10.11.2011, 03:00
Hi,
I have some pickup and if I create a object, check if the object is near ( range 10) of a pickup so...
It's like IsPlayerInRangeOfPoint, but i don't want to use the player id but the object.
ex: IsPlayerInRangeOfPoint( object, 10, pickupx[i],pickupy[i],pickupz[i]) or if objectX objectY objectZ is near(10) to pickupx[i],pickupy[i],pickupz[i] {...}
It's easy with the id player but with a position I don't made that.
Thanks for your help.
I have some pickup and if I create a object, check if the object is near ( range 10) of a pickup so...
It's like IsPlayerInRangeOfPoint, but i don't want to use the player id but the object.
ex: IsPlayerInRangeOfPoint( object, 10, pickupx[i],pickupy[i],pickupz[i]) or if objectX objectY objectZ is near(10) to pickupx[i],pickupy[i],pickupz[i] {...}
It's easy with the id player but with a position I don't made that.
Thanks for your help.