this SORTA works.
NOW the problem is shooting an invisible line from my player to pmaxdist# and if player is within range, then highlight tree.
i DONT wanna detect anything on the ground. just straight ahead, and <= 10 units.
if controlkey()=1
if mouseclick()=1
picked = pick object(mousex(), mousey(), 11, 1000000)
if picked > 0
IF OBJECT EXIST(picked)
IF FML DISTANCE(0, 0, Object Position Z(Object(playerid).id), Object Position X(picked), Object Position Y(picked), Object Position Z(picked)) <= (Object Position Z(picked)-maxpickdist#)
` IntC# = INTERSECT OBJECT(Object(playerid).id, Object Position X(Object(playerid).id), Object Position Y(Object(playerid).id), Object Position Z(Object(playerid).id), 0, 0, maxpickdist#)
` IF IntC# > 0
Center Text screen width()/2, screen height()/2+(x*15),"Object "+STR$(x)+" is in front of you"
ENDIF
text 10, 190, "picked:"+str$(pick object(mousex(), mousey(), 11, 1000000))
ENDIF
endif
endif
endif
CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/