[Opensim-users] script question: llTargetOmega keeps working even with script turned off..

Chris mewtwo0641 at cox.net
Fri Jan 6 08:47:35 UTC 2012


Personally I call llTargetOmega in a link message, one message to start 
it and one to stop it. Cuts down a bit on scripts it would seem :)

Example script I wrote:

float speed = 0.35;

default
{
     state_entry()
     {

     }
     touch_start(integer x)
     {
         llMessageLinked(LINK_SET, 0, "touched", llDetectedKey(0));   
//Let scripts know object with this script was touched and who touched it
     }
     link_message(integer sender_num, integer num, string str, key id)
     {
         if(str == "startrot")
         {
             llTargetOmega(<0,0,1>, speed, speed); //Start rotation
         }
         else if(str == "stoprot")
         {
             llTargetOmega(<0,0,0>, 0.0, 0.0); //Stop rotation
         }
     }
}

Hope this helps


On 1/5/2012 1:11 PM, DutchGlory wrote:
> ok :)  thanks,  i'll  create a script with no rotation, to stop prim
> rotating...
>
>
> Dutch..
>
>
> -----
> _________________________________________
> DutchGlory
> My Opensim/Second Life Blog
> http://verwijs.wordpress.com
> (Dutch, basic hardware/software help  windows, Mac, Linux)
> http://verwijs-pc.nl
> My Twitter Page:
> http://twitter.com/OpenSimFan
> My Facebook page (be my friend, please )
> http://www.facebook.com/andre.verwijs
> .
> --
> View this message in context: http://opensim-users.2152040.n2.nabble.com/script-question-llTargetOmega-keeps-working-even-with-script-turned-off-tp7155523p7155668.html
> Sent from the opensim-users mailing list archive at Nabble.com.
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>


-- 
OpenSim: 9 Region Standalone on 0.7.3 Dev
Physics: Open Dynamics Engine
OS: Windows XP 32 Bit
CPU: AMD Phenom II X4 840 3.2 GHz
Memory: 3 GB DDR3
Database: MySQL 5.1.11




More information about the Opensim-users mailing list