Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float index;
- vector centro;
- float raggio=0.5;
- float z;
- default
- {
- state_entry()
- {
- llSay(0, "Script running");
- //llSensorRepeat("TERRA",NULL_KEY,ACTIVE,20.0,PI,0.01);
- llListen(100,"",NULL_KEY,"");
- llSensorRemove();
- }
- listen(integer channel,string name,key id,string str)
- {
- if(str=="ON") llSensorRepeat("TERRA",NULL_KEY,ACTIVE,20.0,PI,0.1);
- if(str=="OFF") llResetScript();
- }
- sensor(integer count)
- {
- centro=llDetectedPos(0);
- index+=PI/20; if(index>2*PI) index=0;
- vector coord=centro+<raggio*llCos(index),raggio*llSin(index),0>;
- llSetLinkPrimitiveParamsFast(0, [ PRIM_POSITION, coord ]);
- llRezObject("punto",llGetPos(),ZERO_VECTOR,ZERO_ROTATION,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement