Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Land Collision from Linked

Rebecca Naidoo
Registered User
Join date: 28 May 2008
Posts: 82
06-02-2008 03:49
Hello.

I'm trying to make it so when my linked prim hits the ground it sends a linked message to the root prim, but for some reason it wont work.

Root Prim:

default
{


link_message(integer sender_num, integer num, string str, key id){

llSay(0, str);

}
}



Linked:

default
{
land_collision( vector pos ){




llMessageLinked(LINK_ROOT, 0, "detected", NULL_KEY);



}
}
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
06-02-2008 04:15
The collision is probably passed to the root by default, try an event handler in the root.
If you don't want that, make your child so it does not pass collision events:
CODE

default
{
state_entry()
{
llPassCollisions( FALSE );
}

land_collision( vector pos )
{
// your stuff here
}
}
_____________________
From Studio Dora