Jump to content

Looking for a "show object when flying"


4z7v
 Share

You are about to reply to a thread that has been inactive for 173 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I'm trying to make a wearable hoverboard. I already have the mesh hoverboard (3 Prims) and the AO but I'm still looking for a script like this:

Hide the hoverboard when standing, running, sitting etc. and and only show it when hovering and flying so I don't have to attach it everytime.

 

Does anyone have something like this?

Again

Show the hoverboard when hovering and flying only.

 

 

 

 

 

Link to comment
Share on other sites

roughly:

key owner;
default
{  state_entry()
   {  llSetTimerEvent(3.0);
      owner= llGetOwner();
   }
   timer()
   {   if(llGetAgentInfo(owner)&AGENT_FLYING)
       {  llSetLinkAlpha(-1,1.0);
       }else
       {  llSetLinkAlpha(-1,0.0);
       }
   }
   changed(integer c)
   {  if(c&CHANGED_OWNER)
      {  owner = llGetOwner();
      }
   }
}

 

Edited by Quistess Alpha
  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 173 days.

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
 Share

×
×
  • Create New...