Otterman
Angry Mac User
OK, ive posted this on the director forum and its yielded nada, zip, naff all! Gona share this pickle with me fellow lightwavers, here gos nothing-
How do you get hold of the model number ive clicked on- heres the code ive worked on so far- just got the last part to figure out. Got a feeling this one is obvious and staring me in the face.
------ calculate the click location
upperLeft = point(sprite(1).left, sprite(1).top)
clickLocation = the mouseLoc - upperLeft
------ get the model there
if sprite(1).camera.modelUnderLoc(clickLocation) = false then
nothing
else
model = sprite(1).camera.modelUnderLoc(clickLocation)
------ send to message window (THE MODEL NUMBER)
put model() ?????
How do you get hold of the model number ive clicked on- heres the code ive worked on so far- just got the last part to figure out. Got a feeling this one is obvious and staring me in the face.
------ calculate the click location
upperLeft = point(sprite(1).left, sprite(1).top)
clickLocation = the mouseLoc - upperLeft
------ get the model there
if sprite(1).camera.modelUnderLoc(clickLocation) = false then
nothing
else
model = sprite(1).camera.modelUnderLoc(clickLocation)
------ send to message window (THE MODEL NUMBER)
put model() ?????