Ok I have it working like this at the moment:
On exitaction me, whichmodel
if (whichmodel.name) <> "cone01" then
if (whichmodel.name) <> "ROOKPLY1R" then
if (whichmodel.name) <> "ROOKPLY1L" then
if (whichmodel.name) <> "ROOKPLY2R" then
if (whichmodel.name) <> "ROOKPLY2L" then
scene.model(whichmodel.name).shader.emissive = rgb(0,0,0)
cursor -1
end if
end if
end if
end if
end if
End
On enteraction me, whichmodel
if (whichmodel.name) <> "cone01" then
if (whichmodel.name) <> "ROOKPLY1R" then
if (whichmodel.name) <> "ROOKPLY1L" then
if (whichmodel.name) <> "ROOKPLY2R" then
if (whichmodel.name) <> "ROOKPLY2L" then
scene.model(whichmodel.name).shader.emissive =
rgb(127,127,127)
member("outbox").text = "Position:" &&
string(whichmodel.name)
cursor 200
end if
end if
end if
end if
end if
end
Any other ideas of an easier way, maybe a list but I'm not sure how to
get it working
-KEV-
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kevin Mccarthy
Sent: 08 March 2002 17:37
To: [EMAIL PROTECTED]
Subject: <lingo-l> mouseunderloc & changing shader depending ???
Hi all,
I�m trying to build chess in 3D and I am detecting what�s under the
mouse loc or not and in turn change it�s color, but am having difficulty
in a small section:
if (whichmodel.name) <> "cone01" then
I would like to say �or� another model , so I can refer to more models
that don�t need to be affected i.e
if (whichmodel.name) <> "cone01" or "cone02" then
But lingo doesn�t like this, can anyone recommend a way of doing this, I
thought about putting them into a list and referring to that, but again
I can�t get that to work..???
Any idea�s
Kind regards
-KEV-
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]