Change font size
It is currently Sat Dec 15, 2018 1:29 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 4 posts ]
Author Message
 Post subject: Randomly Moving Prim
PostPosted: Thu May 15, 2008 2:08 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
{L_CODE}:
//c#

double x = 0;
double y = 0;

public
void default_event_state_entry()
{
llSetTimerEvent(0.1);
}

public void default_event_timer() {
x += 0.2;
y += 0.1;

Prim.Position.x = System.Math.Sin(x) * 10 + 100;
Prim.Position.y = System.Math.Cos(y) * 10 + 100;
}


Top
 Profile  
 
 Post subject: Re: Randomly Moving Prim
PostPosted: Tue Aug 26, 2008 7:05 am 

Joined: Tue Aug 26, 2008 6:58 am
Posts: 1
Try this:

{L_CODE}:
//c#

double x = 0;
double y = 0;

public
void default_event_state_entry()
{
    llSetTimerEvent(0.1);
}

public void default_event_timer() {
    llSetTimerEvent(0.0);
    x += 0.2;
    y += 0.1;

    Prim.Position.x = System.Math.Sin(x) * 10 + 100;
    Prim.Position.y = System.Math.Cos(y) * 10 + 100;
    llSetTimerEvent(0.1);
}


Top
 Profile  
 
 Post subject: Re: Randomly Moving Prim
PostPosted: Mon Jan 12, 2009 5:55 pm 

Joined: Mon Jan 12, 2009 5:03 pm
Posts: 24
{L_QUOTE}:
Primitive: Error compiling script:
The compiler for language "cs" is not in list of allowed compilers. Script will not be executed!


is this a sim problem that the compiler throws this error ?

OpenSimulator Server 0.6.1.7994 (OS Welcome to openSUSE 11.1 - Kernel %r (%t).) ChilTasks:True PhysPrim:True


Top
 Profile  
 
 Post subject: Re: Randomly Moving Prim
PostPosted: Mon Jan 12, 2009 5:57 pm 
OSG Elite
User avatar

Joined: Wed Nov 19, 2008 6:22 pm
Posts: 592
Hi Word,

usual configuration is lsl + os functions.

if you require a additional script language, just send me the wanted changes to opensim.ini by email :-)


cheers
Ralf

_________________
visit me:

osgrid: Sharkland Tropical 1 SL: Great white shark

German opensim HowTo: http://www.ralf-haifisch.biz/Opensim%20HowTo.shtml
Mapxing - 3D web magazine devotet to opensource: http://opensim.maxping.org/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 4 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net