Jump to content

Moving an agent within a linkset (Resolved)


TailBlue
 Share

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

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

Recommended Posts

Ive been scripting a lift within a linkset as a child prim and I have the lift itself working where it goes up and down. Im wondering how I should go about having the agent(avatar) sitting on the linkset to move with the lift (child prim). I know I could make my own animation that simply has an offset when it plays but that is just some kinda hack or go around the problem. I know its possible dont know how exactly. Ive looked and asked around and there isn't anything to move an agent like it would be for a child prim so it require more scripting to accomplished this.

Not asking people to make a script for me but I guess some tips on how to go about it if thats how I should say that. XD

Thank you for your help.

Edited by TailBlue
Link to comment
Share on other sites

a sitting agent can be moved same as any other link in the linkset

llGetObjectDetails(OBJECT_PRIM_COUNT) gets the number of prims in build excluding agents sitting.  llGetNumberOfPrims() is the number including agents. Agents are always the highest linknumber(s)

move the agent and the lift prim(s) together in the same llSetLinkPrimitiveParamsFast function call

Edited by Mollymews
sitting
  • Thanks 1
Link to comment
Share on other sites

3 hours ago, Mollymews said:

Thank you so much! Your a life saver! Been on and off trying to figure this out for little over a year. Just really kept poking at it honestly but it works and so simple to!.
For anyone wondering I did this.


vector AVI_OFFSET = <0,0,-0.3>;

{
llSetLinkPrimitiveParamsFast(llGetNumberOfPrims(), [PRIM_POS_LOCAL, llList2Vector(llGetLinkPrimitiveParams(llGetNumberOfPrims(), [PRIM_POS_LOCAL]), 0) + AVI_OFFSET]);

}

 

 

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

  • TailBlue changed the title to Moving an agent within a linkset (Resolved)
You are about to reply to a thread that has been inactive for 1270 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...