Can you explain this bit clearer please..
where = getOne(listOfNames, whateeverYouWantToTestFor)
if where > 0 then
-- found it
else
-- not in the list
end if
for instance if I make the list in my on beginsprite:
listOfNames = list("cone01", "ROOKPLY1R", "ROOKPLY1L", "ROOKPLY2R",
"ROOKPLY2L")
and then I need to get this recognised in the other statement, something
like this:
On exitaction me, whichmodel
if (whichmodel.name) <> listOfNames then
scene.model(whichmodel.name).shader.emissive = rgb(0,0,0)
cursor -1
end if
can you correct me!
-KEV-
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Irv Kalb
Sent: 08 March 2002 17:55
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> mouseunderloc & changing shader depending ???
Try:
if (whichModel.name <> "cone01") and (whichModel.name <> "cone02")
then
But if you want a general solution, then the list idea works well:
listOfNames = ['cone01", "cone02", "someOtherName", "yetAnothername",
...]
where = getOne(listOfNames, whateeverYouWantToTestFor)
if where > 0 then
-- found it
else
-- not in the list
end if
Irv
At 5:36 PM +0000 3/8/02, Kevin Mccarthy wrote:
>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..???
>
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[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!]