- 0
I require a script for a opening door
You are about to reply to a thread that has been inactive for 4428 days.
Please take a moment to consider if this thread is worth bumping.
Please take a moment to consider if this thread is worth bumping.
Question
ThomasG81
I need a script that enables me to build an opening and closing door. I've tried the following script I used from a youtube tutorial, but nothing is happening. Where am I going wrong?
default
{
touch_start(integer total_number)
{
rotation rot = llGetLocalRot();
if (rot.z ==0)
{ rot.z = -0.707107;
rot.s = 0.707107;
}
else
{
rot.z = 0;
rot.s = 1;
}
llSetLocalRot(rot);
}
}
Link to comment
Share on other sites
1 answer 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