I have created a simple prim (Water Platform 1) that will rez another simple prim (Water Platform 2) when touched and then die. Platform 1, when touched, will rez Platform 2 and then die. Each of the Platforms contains the other platform in its inventory. This works fine for only the first two times - on the third time Platform 2 seems to lose Platform 1 from its inventory and sends an error message that it cannot find Platform 1.
touch_start(integer total_number) { llRezObject("Water Platform 2", llGetPos()+<0,4,0>,ZERO_VECTOR,ZERO_ROTATION,0); // the rez object is contained in this object's inventory llDie(); } }
touch_start(integer total_number) { llRezObject("Water Platform 1", llGetPos()-<0,4,0>,ZERO_VECTOR,ZERO_ROTATION,0); // the rez object is contained in this object's inventory llDie(); } }
Question
InBeTwine Exonar
Hi folks,
I have created a simple prim (Water Platform 1) that will rez another simple prim (Water Platform 2) when touched and then die. Platform 1, when touched, will rez Platform 2 and then die. Each of the Platforms contains the other platform in its inventory. This works fine for only the first two times - on the third time Platform 2 seems to lose Platform 1 from its inventory and sends an error message that it cannot find Platform 1.
Platform 1 script:
default
{
state_entry()
{
llSetText("Touch to Switch Targets", <0.0,1.0,0.0>, 1);
}
touch_start(integer total_number)
{
llRezObject("Water Platform 2", llGetPos()+<0,4,0>,ZERO_VECTOR,ZERO_ROTATION,0); // the rez object is contained in this object's inventory
llDie();
}
}
Platform 2 script
default
{
state_entry()
{
llSetText("Touch to Switch Targets", <0.0,1.0,0.0>, 1);
}
touch_start(integer total_number)
{
llRezObject("Water Platform 1", llGetPos()-<0,4,0>,ZERO_VECTOR,ZERO_ROTATION,0); // the rez object is contained in this object's inventory
llDie();
}
}
Any ideas?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now