| Scripts name | Randomly moving prim | |
| Purpose | demonstrates movement of a prim by using c#, maybe a non-phys vehicle option | |
| script lanugages used | cs | |
| important settings for region | cs must be at least a allowed language | |
| test on | osgrid - trunk 6.2 SVN816632, XEngine | |
| source | osgrid forum, tglion |
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);
}