<br />
<b>Warning</b>:  Parameter 1 to Language::getMagic() expected to be a reference, value given in <b>/var/www/sda/2/c/digigrids/wiki/includes/StubObject.php</b> on line <b>58</b><br />
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://digigrids.free.fr/wiki/skins//common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>OSSL Script Library/OSSL Poseball - Historique des versions</title>
		<link>http://digigrids.free.fr/wiki/index.php?title=OSSL_Script_Library/OSSL_Poseball&amp;action=history</link>
		<description>Historique pour cette page sur le wiki</description>
		<language>fr</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Sat, 22 Aug 2026 16:36:33 GMT</lastBuildDate>
		<item>
			<title>Djphil&amp;nbsp;:&amp;#32;Page créée avec « A poseball script, using OSSL functions  The code contains a lot of comments, explaining what does what, and why it is there.  &lt;lsl&gt; // OSSL Poseball // By Fritigern Gothly /… »</title>
			<link>http://digigrids.free.fr/wiki/index.php?title=OSSL_Script_Library/OSSL_Poseball&amp;diff=4549&amp;oldid=prev</link>
			<description>&lt;p&gt;Page créée avec « A poseball script, using OSSL functions  The code contains a lot of comments, explaining what does what, and why it is there.  &amp;lt;lsl&amp;gt; // OSSL Poseball // By Fritigern Gothly /… »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A poseball script, using OSSL functions&lt;br /&gt;
&lt;br /&gt;
The code contains a lot of comments, explaining what does what, and why it is there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lsl&amp;gt;&lt;br /&gt;
// OSSL Poseball&lt;br /&gt;
// By Fritigern Gothly&lt;br /&gt;
// Written on March 18th, 2012&lt;br /&gt;
// Additional contributors:&lt;br /&gt;
// &amp;lt;add your name here if you made any improvements to this script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
vector target = &amp;lt;0.0, 0.0, 1.0&amp;gt;; // Change these values to position your avatar.&lt;br /&gt;
&lt;br /&gt;
// =============================&lt;br /&gt;
// DO NOT CHANGE BELOW THIS LINE&lt;br /&gt;
// =============================&lt;br /&gt;
string anim; // Will be used for the animation name.&lt;br /&gt;
integer used; // Used as a flag to determine what the script should do.&lt;br /&gt;
key user; // This will hold the key of the user that uses the poseball&lt;br /&gt;
&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llSitTarget(target, ZERO_ROTATION);&lt;br /&gt;
        anim = llGetInventoryName(INVENTORY_ANIMATION,0); // Get the first animation in the prim's inventory.&lt;br /&gt;
        if(anim == &amp;quot;&amp;quot;) // If no animation was found...&lt;br /&gt;
        {&lt;br /&gt;
            state error; // Go and wait until the inventory has changed.&lt;br /&gt;
        } else { // Otherwise....&lt;br /&gt;
            llOwnerSay(&amp;quot;Found animation ''&amp;quot;+anim+&amp;quot;''&amp;quot;); // Confirm that there is an animation in the inventory&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
        &lt;br /&gt;
    changed(integer change)&lt;br /&gt;
    {&lt;br /&gt;
        if (change &amp;amp; CHANGED_LINK) // Triggered when someone sits on the4 poseball. When you sit, you really link to the ball.&lt;br /&gt;
        {&lt;br /&gt;
            if(!used)&lt;br /&gt;
            {&lt;br /&gt;
                used = TRUE;&lt;br /&gt;
                user = llAvatarOnSitTarget();&lt;br /&gt;
                if(user == NULL_KEY) used = FALSE; // Make sure that there's really someone sitting on the poseball&lt;br /&gt;
                llSetAlpha(0.0,ALL_SIDES); // Hide the poseball when sat upon&lt;br /&gt;
                osAvatarStopAnimation(user, &amp;quot;sit&amp;quot;); // Stop the default sit animation (IMPORTANT!)&lt;br /&gt;
                osAvatarPlayAnimation(user, anim);  // And start the animation that we want started.&lt;br /&gt;
            } else {&lt;br /&gt;
                used = FALSE;&lt;br /&gt;
                llSetAlpha(1.0,ALL_SIDES); // Make the poseball visible again when user stands up&lt;br /&gt;
                osAvatarStopAnimation(user, anim); //Stop the animation when the user stands up.&lt;br /&gt;
                user = NULL_KEY; // Probably redundant, but we want to make sure that the value for ''user'' is empty.&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        if(change &amp;amp; CHANGED_INVENTORY)&lt;br /&gt;
        {&lt;br /&gt;
            llResetScript(); // Reset the script if the inventopry has changed.&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
state error&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llOwnerSay(&amp;quot;This poseball contains no animations. Please add one.&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    changed(integer change)&lt;br /&gt;
    {&lt;br /&gt;
        if(change &amp;amp; CHANGED_INVENTORY)&lt;br /&gt;
        {&lt;br /&gt;
            llOwnerSay(&amp;quot;Change detected. Initializing&amp;quot;);&lt;br /&gt;
            llResetScript();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lsl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripts]]&lt;/div&gt;</description>
			<pubDate>Thu, 12 Apr 2012 04:56:33 GMT</pubDate>			<dc:creator>Djphil</dc:creator>			<comments>http://digigrids.free.fr/wiki/index.php?title=Discussion:OSSL_Script_Library/OSSL_Poseball</comments>		</item>
	</channel>
</rss>