Jump to content

Temp attachment for MLPV2 system


Suki Hirano
 Share

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

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

Recommended Posts

Does anyone know how to get the MLPV2 pose system to run a specific script when a menu button is clicked? It's definitely possible because I heard from someone they managed to run a particle script when certain poses are selected (but no more info was given).

I'm trying to get a temp attachment popup to appear when certain poses are selected, instead of rezzing a stationary prop, for example like a fork or something, so people don't have to manually accept and attach/detach props themselves every time a pose is switched. The script to request attaching a temp attachment is quite easy itself as per the wiki, but I'm not sure how to trigger it with MLPV2. It must be something similar to the item giver plugin?

 

LINKMSG MyButtonName | 1,-4,987789,NamesOfObjectToOffer##MsgToPerson

 

LINKMSG seems to be the prefix to add to a pose config notecard that triggers an external script, but I'm lost otherwise.

Thanks.

Link to comment
Share on other sites

to attatch a prop to an avi when the menu button is selected,

http://wiki.secondlife.com/wiki/LlAttachToAvatarTemp

 

to run a script when a button is selected you could send a linkmessage,

http://wiki.secondlife.com/wiki/LlMessageLinked

or use a listen,

http://wiki.secondlife.com/wiki/Listen

or turn the other script on / off

http://wiki.secondlife.com/wiki/LlSetScriptState

Link to comment
Share on other sites

I'm not sure MLPV2 is still actively supported by its users, but if so, that may be a better place to inquire about something so specific. I imagine somebody must have done this already, for things like cuffs if nothing else.

I suppose the overall structure for doing this with MLPV2 would be something like:

  • a script embedded in the to-be-attached object, which object is simply rezzed as a prop (this embedded script will call llAttachToAvatarTemp() once it gets the key of the avatar to whom it should try to attach)
  • a script added to the MLPV2-scripted item to catch the system's built-in link messages that are generated whenever an avatar sits or stands or an animation starts, using the supplied avatar key to identify to whom the prop should attempt to attach
  • a listener message from that furniture script to that attachment script, sending that target avatar key.

Note that anything to be temp-attached must have both copy and transfer permissions for the furniture owner.

I don't know how important it is to use MLPV2 specifically; the nPose system comes with plug-ins specifically to handle temp attachments (which I've never used myself).

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3209 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...