Jump to content

GriffinTamer

Resident
  • Posts

    5
  • Joined

  • Last visited

Everything posted by GriffinTamer

  1. Thanks all for your replies. I had tried your suggestions and still it doesn't work for me. It goes through all of the code except for setting the position and rotation back to the original settings at the end. Strange.
  2. I am very new to SL, so I decided to pick up the "Scripting Your World" book to learn a little about the scripting. I tried using the code given in listing 1.10 which should return an object to its original position, but cannot make it work. I have copied the code exactly and do not get any errors when I save it. vector gInitialPosition; rotation gInitialOrientation; default { state_entry() { gInitialPosition = llGetPos(); gInitialOrientation = llGetRot(); llOwnerSay("Pos:"+(string)gInitialPosition); llOwnerSay("Rot:"+(string)gInitialOrientation); } touch_start(integer n) { llOwnerSay("Doing experimental stuff"); // add your experiment here llSetTimerEvent( 10 ); } timer() { llSetPos(gInitialPosition); llSetRot(gInitialOrientation); llSetTimerEvent( 0 ); } } Any ideas on how I can make it work?
  3. I want to be able to roll a ball and have it come back to its original position after a set amount of time. I tried using parts of the script given in this discussion, and it ALMOST works, but after the ball returns to the original position, the "Physical" box is no longer checked, so I cannot roll the ball again. Anybody have any ideas? Here is the script I am using: vector gHome; integer gHit; default { touch_start(integer numr) { llSetTimerEvent(5.0); gHome = llGetPos(); llSetRegionPos(gHome); llResetTime(); } timer() { llSetStatus(STATUS_PHYSICS,FALSE); gHit = FALSE; llSetRegionPos(gHome); llSetTimerEvent(0.0); } }
  4. It says I must be at least 30 days old. Is this based on my SL age or RL age? My account is only one week old. I need to get in Ito complete a class assignment.
×
×
  • Create New...