Update repo (#1)
* Update README.md * Update and rename [AV]LockGuard-object.lslp to [AV]LockGuard-object.lsl * Update [AV]LockGuard-object.lsl * Update [AV]LockGuard-object.lsl * Update [AV]LockGuard-object.lsl * Update and rename [AV]LockGuard.lslp to [AV]LockGuard.lsl * Update and rename shared props via BUTTON.lslp to shared props via BUTTON.lsl * Update and rename shared props via POSE.lslp to shared props via POSE.lsl
This commit is contained in:
parent
ff60b814dc
commit
5c4f5b3418
9 changed files with 497 additions and 395 deletions
25
AVsitter2/Plugins/AVprop/shared props via BUTTON.lsl
Normal file
25
AVsitter2/Plugins/AVprop/shared props via BUTTON.lsl
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Shared props with BUTTON (alpha) v0.01a
|
||||
//
|
||||
// Allows props to be rezzed by button. They won't derez when sitters "swap" or
|
||||
// if only one avatar stands up. Requires [AV]prop script from AVsitter2
|
||||
// box 2.1-09.01 or later. Shared props should use PROP3 in the AVpos notecard
|
||||
// (a special prop type specifically for shared props).
|
||||
//
|
||||
// example use:
|
||||
//
|
||||
// BUTTON myprop|555 <--- rez the prop
|
||||
// BUTTON [CLEAR]|555 <--- clear all props
|
||||
// BUTTON remprop_myprop|555 <--- derez the prop
|
||||
// PROP3 myprop|object|0|<0,0,0><0,0,0> <--- define the prop (in any SITTER)
|
||||
|
||||
default
|
||||
{
|
||||
link_message(integer sender, integer num, string msg, key id)
|
||||
{
|
||||
if (num != 555) return
|
||||
|
||||
llMessageLinked(LINK_THIS, 90220, "remprop_" + msg, NULL_KEY); // remove the prop
|
||||
llMessageLinked(LINK_THIS, 90220, msg, NULL_KEY); // rez the prop
|
||||
llMessageLinked(LINK_THIS, 90005, "", id); // give back the menu
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue