Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Moving cards, moving just rezzed...

Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
06-29-2006 21:07
I want to move a card across a table, but I need to first rez the card, link it to the table and then change the pos.
Like i've seen casino games do this, and i'm wondering how this would work out. I assume something is rezzed, and then linked to the table... but i'm not 100% sure.

Anyone give me a starting point, or generally point out how to do it?
_____________________

Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
06-29-2006 22:40
From: Jade Bard
I want to move a card across a table, but I need to first rez the card, link it to the table and then change the pos.
Like i've seen casino games do this, and i'm wondering how this would work out. I assume something is rezzed, and then linked to the table... but i'm not 100% sure.

Anyone give me a starting point, or generally point out how to do it?


llRezObject
llSetPos
Don't rezz the cards, just have enough cards that are needed on the table at once and link them to the table. When the cards are needed, llSetPos them to the top, and apply an appropriate card texture.
Jesse Malthus
OMG HAX!
Join date: 21 Apr 2006
Posts: 649
06-30-2006 14:09
Rezing and changing position is not "optimal" in terms of code, but could be cool if you were using it to make the cards "animate"