Difference between revisions of "MLPV2 Balls Patch"
Jump to navigation
Jump to search
Jenni Eales (talk | contribs) (Created page with '* MLPV2 * MLPV2_Addons This is a patch of the ~menu Script that allows Ball Menus to use different Objects as Pose Balls. ===Step 1: Patch the ~menu Script=== find the...') |
m (+ Category:MLPV2) |
||
Line 29: | Line 29: | ||
* add special features, e.g. add the [[MLPV2_RLV_Capture_Plugin|~capture]] Plugin | * add special features, e.g. add the [[MLPV2_RLV_Capture_Plugin|~capture]] Plugin | ||
* put it into your piece of furniture | * put it into your piece of furniture | ||
[[Category:MLPV2]] |
Latest revision as of 09:44, 25 December 2011
This is a patch of the ~menu Script that allows Ball Menus to use different Objects as Pose Balls.
find the line
<lsl> llRezObject("~ball",llGetPos(),ZERO_VECTOR,ZERO_ROTATION,ch+BallCount);</lsl>
in the ~menu Script and replace it with
<lsl> // extension by Jenni Eales: use special balls for a ball number
if (llGetInventoryType("~ball" + (string)BallCount) == INVENTORY_OBJECT) { llRezObject("~ball" + (string)BallCount,llGetPos(),ZERO_VECTOR,ZERO_ROTATION,ch+BallCount); } else { llRezObject("~ball",llGetPos(),ZERO_VECTOR,ZERO_ROTATION,ch+BallCount); }
</lsl>
Step 2: Add another Ball
- make a copy of your ~ball object
- rename it to ~ball0, ~ball1 etc.
- add special features, e.g. add the ~capture Plugin
- put it into your piece of furniture